kenwheeler / slick

the last carousel you'll ever need
kenwheeler.github.io/slick
MIT License
28.33k stars 5.88k forks source link

Using images or other elements instead of dots #4155

Open BuzzGraphicDesign opened 2 years ago

BuzzGraphicDesign commented 2 years ago

Hi.

I have a simple question: i want to use images to be the anchor points instead of dots, how can i do that?

Or how can i rebind the dots elements to other elements?

Thanks.

lenserrano commented 2 years ago

In your slick initialization pass the option dotClass : 'your-class', with the class, an in the CSS you found that it's nested in a ul tag so it's something like: ul.your-class > li > button and in the button change the background.