Jump to content
Search Community

Navigate Carousel/Slider by clicking on the slide number

theastroco test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Hello, I'm new down here. I was wondering if there's a possibility to put numbers instead of Next and Prev so when one clicks on the (number of slide) button , it navigates directly the slide in question rather than going next one.

 

Example : When I'm on the slide 1 and I click next and I'll go to slide 2

 

How do I do to make this example possible : I'm on the slide 1, I click on (button 5) and I transition to Slide 5 directly.

Thanks.

See the Pen qqmBjQ by jonathan (@jonathan) on CodePen

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...