LutzDev Posted June 21 Share Posted June 21 Hi everyone, I like the aspects of GSAP timelines. In my Nuxt 3 application, I've been utilizing a master timeline shared via Pinia. Each component utilizes a context that is defined within the "onMountend" Lifecycle Hook and reverts during the "onUnmounted" phase. If a component is mounted, I add its animations to the master timeline. If the component gets unmounted, I remove the component's animation from the master timeline. Does the revert() function automatically remove the component's animations from the master timeline, or do I have to remove the animation myself? Link to comment Share on other sites More sharing options...
Solution Cassie Posted June 21 Solution Share Posted June 21 Heya! I did a test and it's removed. Here you go See the Pen GRwjWgP?editors=1111 by GreenSock (@GreenSock) on CodePen 3 Link to comment Share on other sites More sharing options...
LutzDev Posted June 23 Author Share Posted June 23 Good to know. Thanks for response! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now