Robert Wildling Posted November 13, 2024 Posted November 13, 2024 Hi, fellow GSAPers! May I ask for your help, please?!? The codepen shows a pendulum like motion - or should. Because for some reason, after the very first pendulum motion, there is a strange delay. Only then it continues naturally. Do you happens to know why? And what the solution would be? Thank you! See the Pen MWNLXry by rowild (@rowild) on CodePen.
mvaneijgen Posted November 13, 2024 Posted November 13, 2024 I would use CustomWiggle for this. I don't know why your code doesn't work, but it seems like you're trying to build your own easing function, but doing it in onComplete callbacks. That would require a lot of trail and error, to figure out what is overwriting what (because I think that is the issue here, things trying to overwrite other things). If you would want to build it your self I would definitely do it in an ease function, but then you're building the CustomEase (and CustomWiggle) plugin, and that is something that is already solved for you with all the gotchas figured out, so I'm not sure how to help here. Happy tweening! See the Pen BaXMPvQ?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen. 3
Robert Wildling Posted November 13, 2024 Author Posted November 13, 2024 Thanks for your response! Your solution does not do anything - not sure if that is on purpose... I will look into CustomWiggle, thanks for that tip!
mvaneijgen Posted November 13, 2024 Posted November 13, 2024 Seems like there was an error in my code. I've updated it now. Hope it helps and happy tweening! 1
Rodrigo Posted November 13, 2024 Posted November 13, 2024 Hi, On top of @mvaneijgen's great demo, check this thread just in case: Hopefully this helps Happy Tweening! 1
Robert Wildling Posted November 14, 2024 Author Posted November 14, 2024 @mvaneijgen Thank you very much for your help! Wonderful demo! I'll look into that! @Rodrigo Thank you for your reply and the link to another source, which is also really beautiful! 1
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