jakob zabala Posted March 29, 2021 Posted March 29, 2021 This solution works but... I am struggling with the direction of the stem. I can only get it to work with a fromTo tween... but if the animation isn't finished then the stem animates in from 100 to 0. (using mouseenter and mouseleave event listeners) is there another way to flip the starting point and ending point of a path without fromTo? Thanks! See the Pen RwKGorQ by jaykobz (@jaykobz) on CodePen.
Solution PointC Posted March 29, 2021 Solution Posted March 29, 2021 Hi @jakob zabala It's usually best to create the timeline outside of your event handlers and then play()/reverse() on hover so you don't get those weird overwrites. Make sense? Happy tweening. 2
jakob zabala Posted March 29, 2021 Author Posted March 29, 2021 Aaah yes of course, never needed to use that until now! I knew it was a simple solution, thank you!!
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