Jump to content
Search Community

Unset all animation

flim test
Moderator Tag

Go to solution Solved by Cassie,

Recommended Posts

  • Solution

Hey there!

 

This is always a little more complex than just killing all animations.

If an animation serves an important purpose, e.g fading and animating in a modal, if you kill it, then that functionality is broken. 🙃

If they're purposeful animations - I would recommend making all your animations *superfast* e.g...

gsap.globalTimeline.timeScale(999)

 

If you do actually want to kill all your animations you could use...

 

gsap.globalTimeline.clear()

 

Hope this helps!

  • Like 3
Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

I want to reset the animation to the beginning of the animation when switching from desktop to mobile screen, not revert playback.

Now I just check mediaquery to reload the page without animation when switching to mobile, or set animation when change to the desktop view. 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...