Jump to content
Search Community

Reset element position after tween

syatson test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hi, first post. I'm really enjoying GSAP. It's saved me a bunch of time, which I've eaten up playing with cool features.

 

I browsed the forum for this subject but don't see a search so I didn't find anything I could understand. 

 

I'm trying to run a tween and leave the objects onscreen in their tweened state until a later event occurs, for example a click. When that click happens I want to destroy that tween information in a way that I can rerun the tween after a different event at a later time. 

 

It feels like this should be easy and I'm missing something obvious. I found .time(), .killTweensOf() and a few other things in the docs but I just can't get this to work. Any help appreciated.  

See the Pen oeQMvN by syatson (@syatson) on CodePen

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