Jump to content
Search Community

GSAP TimeLine how to go back original position after kill Tween?

ngocducdim test
Moderator Tag

Recommended Posts

Have you seen the docs? There is an .kill() function https://greensock.com/docs/v3/GSAP/Timeline/kill()

 

I would love to know the problem you're facing, because I think there probably is a solution for it, but where are missing the full picture of what it is you want to do.

 

See the Pen KKowORB?editors=1010 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 1
Link to comment
Share on other sites

Hi, thanks for the reply, the kill you mention above is completely kill the whole timeline? My current situation is the timeline will have many tweens (using .to and .from), and  I need to edit/remove some of those tweens, but when remove I expect it come back original position but it doesn't, now have found solution that I will use .fromTo(), it more easier to control the tweens in timeline. Thanks for you help

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...