Can we have option to disable animation in some components?
See original GitHub issue- I have searched the issues of this repository and believe that this is not a duplicate.
What problem does this feature solve?
It would be great if we have option to disable animation or at least customize them in some components such as Tree or Modal.
What does the proposed API look like?
For example Tree component with prop animation={false}
will render the tree without CSSMotion component wrapped around it
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Disable animation on initial view / page load : Angular
Use [@.disabled]="isPaused" on the element itself to prevent animation; where isPaused is a boolean variable that is equal to true .
Read more >Change, remove or turn off animation effects - Microsoft Support
On the Animation tab, click Animation Pane. Open the Animation Pane · On the slide, click the animated object that you want to...
Read more >How to disable Animation for certain packages only - IBM
If the animation for the entire project has to be disabled, set the Instrumentation option under Settings tab of the Active Configuration to...
Read more >Animation | Framer for Developers
When a motion component is first created, it'll automatically animate to the values in animate if they're different from those defined in style...
Read more >Framer-Motion: New And Underestimated Features - Shakuro
To replicate in some way GreenSock's ScrollTrigger – pinning motion component in viewport while animating we need to wrap it into two wrappers, ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It seems like setting
motion={null}
on the Tree component works. It’s not a documented prop, but you can see where it comes into play here.@zombieJ my Tree component have hundreds of item and I don’t want to have animation to cost performance of the tree on expand / collapse (this is main reason). Also when the tree expands, it overflows the container’s height, which is fine, but the scrollbar keeps changing during the animation. You can see the gif below
^ This is minor, not very important. Thanks for the good work on antd btw.