Jump to content
GreenSock

Sundararajan KS

Changing number of items in Carousel breaks the animation

Recommended Posts

Hello,

 

I want a carousel exactly like this "", but with just 3 items instead of 30.

When I change the number of items to less than 10, the carousel breaks.

 

Please help, I am not that good at JS.

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

Link to comment
Share on other sites

Hi @Sundararajan KS. That demo was specifically built knowing that there'd be more elements than are visible on the screen, so we don't need to make any duplicates. If you only have 3 elements, that means you can't even fill the slots on the screen and you'll need to make duplicates.

  • Like 1
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.
×