mystrdat2 Posted September 11, 2020 Share Posted September 11, 2020 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 More sharing options...
ZachSaucier Posted September 11, 2020 Share Posted September 11, 2020 Hey mystrdat2. This is easily done by using the .kill() method. Once it's killed, just use a new .to() tween to go to your desired static values. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now