Philibert Posted September 17 Share Posted September 17 Hi everyone, i'm trying to create my first infinite slider and want to use ScrollTrigger to infinitely loop through the slider . I made several attempts at it but mys slider keep not moving as shown in codepen. Do you have any idea why ? Thanks for reading me See the Pen QWzMQKy by PhilibertEtienne (@PhilibertEtienne) on CodePen Link to comment Share on other sites More sharing options...
Rodrigo Posted September 17 Share Posted September 17 Hi @Philibert and welcome to the GreenSock forums! I'm not in front of my computer now but based on the code you posted and the description you give this might be a perfect fit for the horizontal endless loop helper function: https://greensock.com/docs/v3/HelperFunctions#loop You can combine it with ScrollTrigger to achieve nice effects like this See the Pen GRwePYw by GreenSock (@GreenSock) on CodePen Or you can use the Observer Plugin to get the same effect: See the Pen zYaxEKV by GreenSock (@GreenSock) on CodePen https://greensock.com/docs/v3/Plugins/Observer Hopefully this helps. Happy Tweening! 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