Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
heneu

Infinity Image slider

Recommended Posts

Hello,

I've made an endless image slider based on the example from CodePen. It's working!

The slider in the example is working continuous. Is it possible to modify it to slide one image, wait a certain time and then slide the next image?

Thanks!

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

Link to post
Share on other sites

Hey @heneu

 

You could decrease the duration, adjust the amount to shift things to the right for the width of a single item, add a repeatDelay (which represents the time you want to wait) and add repeatRefresh: true to make sure, that when it repeats it will start from the last position instead of the start, and you should be good to go. Welcome to the forums :) 

 

See the Pen 7c06e8f26466232f9183e891114f0077 by akapowl (@akapowl) on CodePen

  • Like 5
Link to post
Share on other sites

Awesome!

That's the solution.

Thank you very much!

Link to post
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.

×