Jump to content


How to slide just one item in Draggable slider?

Recommended Posts

Hi guys!


I'm new here and I'm struggling to edit this slider by synchronizing slider index with titles index.

It was pretty easy to make it work on nav click, but as you can see it can't count which is the destination index, and it only counts one for titles.


Have you some suggestions?
Also I would like to add an active class to che center slide in order to make the others with some opacity..


Thank you!!

See the Pen ZExXEyY by sarahKitsune (@sarahKitsune) on CodePen

Link to comment
Share on other sites

Hey there!


There's actually a demo in the helper functions section of the docs with an adjustment to add a class to the center slide. Maybe this edit will help with your other issue too?

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


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