Removing styles after transition completes
See original GitHub issueI’m using react motion for view transitions and I’m running into problems where the styling needed for my transitions (a mix of transform and opacity) interferes with my child component styling and after the transitions there’s really no use for the transitions styles anyway, so I would like to remove them after the animation has completed.
Is there a good pattern for that currently? Something simmilar to [clearprops](http://greensock.com/docs/#/HTML5/GSAP/Plugins/CSSPlugin/)
in GSAP would be ideal. Is it possible?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Removing styles after enter transition · Issue #173 - GitHub
I'm using Transition to animate the appearance of some items in a list. Amongst other properties, I'm animating opacity from 0 to 0.9...
Read more >Remove/Hide div from DOM after animation completes using ...
Use the animation-fill-mode option. Set it to forwards and the animation ends at it's final state and stay like that.
Read more >Animation Techniques for Adding and Removing Items From a ...
Animating elements with CSS can either be quite easy or quite difficult depending on what you are trying to do.
Read more >Using CSS transitions - CSS: Cascading Style Sheets | MDN
CSS transitions provide a way to control animation speed when changing CSS properties. Instead of having property changes take effect ...
Read more >How to Linearly Transition the removal of a DOM element ...
For a particular HTML/DOM element, our job is to remove it and add a transition to the process of removal. Eventually, as soon...
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
👍 I would also love to see
onRest()
available in TransitionMotionI need the
onRest()
callback to be available withStaggeredMotion
. Any plans on when this would be available? Or is there any way to make it happen now?