Jump to content
Search Community

My loop is not working properly

momo12 test
Moderator Tag

Go to solution Solved by akapowl,

Recommended Posts

  • Solution

Hello there, Momo.

 

Getting loops like that right will involve quite some consideration.

 

Luckily for you, @GreenSock has created a helper function for looping like that.

 

It is is mentioned in the thread linked below among others, and also in the docs' Helper Function section.

https://greensock.com/docs/v3/HelperFunctions#loop
 

 

See the Pen xxQjvrV by akapowl (@akapowl) on CodePen



 

  • Like 2
Link to comment
Share on other sites

9 minutes ago, akapowl said:

Hello there, Momo.

 

Getting loops like that right will involve quite some consideration.

 

Luckily for you, @GreenSock has created a helper function for looping like that.

 

It is is mentioned in the thread linked below among others, and also in the docs' Helper Function section.

https://greensock.com/docs/v3/HelperFunctions#loop
 

 

 

 


 

 

 

Thanks a lot for this! Is there a way to let users scroll? Or it affects the movement of the slider?

 

Link to comment
Share on other sites

2 minutes ago, momo12 said:

To understand the code correctly: I must always use a grid?

 

Neither the horizontal-, nor the vertical-loop examples linked on the documentation page I referred you to above, do use a grid;

So I suppose the answer for your question is: No, you don't have to use a grid at all.

 

See the Pen ZELPxWW by GreenSock (@GreenSock) on CodePen

 

See the Pen MWXPgKm by GreenSock (@GreenSock) on CodePen

 

  • Like 1
Link to comment
Share on other sites

11 minutes ago, akapowl said:

 

Neither the horizontal-, nor the vertical-loop examples linked on the documentation page I referred you to above, do use a grid;

So I suppose the answer for your question is: No, you don't have to use a grid at all.

 

 

 

 

 

 

 

You're a life saver! Thanks a lot :)

  • Like 2
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...