Show instagram style dots in slick slider

Cray picture Cray · Feb 11, 2018 · Viewed 7.4k times · Source

I'm using the slick slider to show a lot of slider items. I also need to use dots to show the position of the items. At the moment, there are a lot of dots and I want do show the dots like instagram does.

Here is what i mean:

enter image description here

There should always be max 6 dots visible. Starting with the first one on the left side.

Is there any way to adress the 4 dots in the middle? At the moment I could only adress the active dot with it's class slick-active. But I need the dots before and after the active dot.

Here is my actual slider code: https://codepen.io/cray_code/pen/ZrKpWY

Answer

SolvingMan picture SolvingMan · Sep 15, 2018

I have developed Instagram Stick slider with jQuery. you can use in this link. https://github.com/SolvingMan/Instagram-Stick-Slider-jQuery

live Demo:

enter image description here