Jump to content
Search Community

Ideal way to invalidate a running animation and animate its current values to a new state

mystrdat2 test
Moderator Tag

Recommended Posts

I have 2 animations:
1) starts on mouseenter and has some random properties so it needs to be initialized fresh on every new event. It also loops and yoyos forever
2) starts on mouseleave and should stop animation 1) and tween from its current values towards a different static value

Basically at some point I need to stop animation 1 yet keep it's animated value, and use that value for a new animation. How would I ideally achieve this with the API?

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