Currently, I am utilizing the slick slider to display numerous slider items. Additionally, I want to include dots to indicate the position of the items. However, there are too many dots visible at once, and I wish to display them similarly to how Instagram does.
Here is a reference of my desired display:
https://i.sstatic.net/jqTUg.jpg
I would like only a maximum of 6 dots to be visible at any given time, starting with the first dot on the left side.
Is there a method to target the 4 dots in the middle? Currently, I am only able to target the active dot using its class slick-active
. However, I require the dots before and after the active one.
Below is the code for my current slider setup: https://codepen.io/cray_code/pen/ZrKpWY