Akish Posted January 11, 2023 Share Posted January 11, 2023 I'm trying to create a fade slider or animation that loops over elements. I got to loop but is there anyway to have controls over the animation to move over previous or next elements like a slider. I've attached a basic codepen example of where I'm at. See the Pen wvxdzMq by akishjoseph (@akishjoseph) on CodePen Link to comment Share on other sites More sharing options...
Solution Rodrigo Posted January 11, 2023 Solution Share Posted January 11, 2023 Hi, I think you are overcomplicating this a bit. This seems to be cleaner and easier to follow: See the Pen QWBvqrL by GreenSock (@GreenSock) on CodePen Keep in mind that a delayed call is just a GSAP Tween instance, nothing more: https://greensock.com/docs/v3/GSAP/gsap.delayedCall() Hopefully this helps. Happy Tweening! 1 Link to comment Share on other sites More sharing options...
Akish Posted January 21, 2023 Author Share Posted January 21, 2023 On 1/12/2023 at 4:01 AM, Rodrigo said: Hi, I think you are overcomplicating this a bit. This seems to be cleaner and easier to follow: Keep in mind that a delayed call is just a GSAP Tween instance, nothing more: https://greensock.com/docs/v3/GSAP/gsap.delayedCall() Hopefully this helps. Happy Tweening! Thank you! This is great solution. 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