Amini Posted September 29, 2022 Share Posted September 29, 2022 Hi, I'm trying to loop over these images. Like, removing the last image and putting it in the first place. Thanks in advance See the Pen ZEoxEzZ by amini-py (@amini-py) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted September 29, 2022 Share Posted September 29, 2022 Here's a helper function for you!https://greensock.com/docs/v3/HelperFunctions#loop Link to comment Share on other sites More sharing options...
Amini Posted September 29, 2022 Author Share Posted September 29, 2022 @Cassie Thanks but I'm here for spoon feeding 1 Link to comment Share on other sites More sharing options...
Cassie Posted September 29, 2022 Share Posted September 29, 2022 Well the helper function covers everything you could possibly need to do horizontal looping, and it does it all for you. Here it is simplified down without the controls. Is there something it particular that you're confused about? See the Pen eYrMNQx?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Amini Posted October 1, 2022 Author Share Posted October 1, 2022 @Cassie Thanks. I don't know why but the scrolling and looping is not working even I did all needed. 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