EmAnd Posted May 17, 2022 Share Posted May 17, 2022 Hi! - I would like to start a timeline on mouseenter, that will run infinite until mouseleave. - During the timeline I don't want it to morph with the initial circle (shape1) - On mouseleave I would like it to return to initial circle(shape1) smoothly. 1. Right now my mouseleave function returns Uncaught TypeError: tl.paus is not a function 2. The progress[0] makes it hacky. Can someone point me in the right direction in how to structure it? See the Pen NWyrXKw by emmanders (@emmanders) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted May 17, 2022 Share Posted May 17, 2022 Heya, Just a typo badtl.paus(); good tl.pause(); 1 Link to comment Share on other sites More sharing options...
EmAnd Posted May 17, 2022 Author Share Posted May 17, 2022 Haha, ah, thanks a lot! Do you have any ideas on: - During the timeline I don't want it to morph with the initial circle (shape1) - On mouseleave I would like it to return to initial circle(shape1) smoothly. Link to comment Share on other sites More sharing options...
Solution Cassie Posted May 17, 2022 Solution Share Posted May 17, 2022 Something like this maybe? See the Pen ExQWaNE?editors=0010 by GreenSock (@GreenSock) on CodePen 3 Link to comment Share on other sites More sharing options...
EmAnd Posted May 17, 2022 Author Share Posted May 17, 2022 Yes, exactly what i was looking for. Thank you 🙌 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