Animating transitions on mount/dismount via GreenSock (GSAP) #264
Unanswered
canadaduane
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's a little component I made that makes it easier to manage animating on mount/dismount. For example, fading in and fading out. Usually, it's easy to transition on mount (e.g. fade in) but difficult to transition on dismount (e.g. fade out) because the component is removed from the DOM too early. To work properly, the parent component needs to wait for the transition to complete before removing the child DOM element.
Using the
Transition
wrapper component below, you could fairly easily fade a component in or out (or slide in or out, or whatever greensock transitions you want), like so:Beta Was this translation helpful? Give feedback.
All reactions