Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Tee

Undo animation without ease/animation

Recommended Posts

I'm very new to GSAP and didn't find an answer online, hence excuse this basic question.

 

Is there a way to undo an const animation = gsap.timeline().. ?

I know of animation.reverse() - I need something like this, but without the animation/ease - I need it to reset to it's initial values without any animation.

Is there a simple way to do this?

Link to comment
Share on other sites

animation.pause(0);

:) 

 

Also .seek(0).pause() or .progress(0).pause(). Or .restart().pause(). Lots of ways.

  • Like 2
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.
×