Jacques Goudreau
Jacques Goudreau

Reputation: 511

Slick Slider ... don't have the current class to play with

I want to change the opacity of the current slide but I don't have the class to play with in the HTML...

This is what I see:

<div class="g_product__wrapper slick-slide slick-cloned slick-active" data-slick-index="6" aria-hidden="false" style="width: 251px;">

... there is no slick-current ...

Any idea will be appreciated!

Cheers!

Upvotes: 0

Views: 965

Answers (2)

Jacques Goudreau
Jacques Goudreau

Reputation: 511

Ok... Center Mode to true and used .slick-center instead of .slick-current. Did the trick for me.

Thanks!

Upvotes: 0

iSZ
iSZ

Reputation: 682

The current slide has the below class

.slick-current

Or try below if you are targeting all visible slides

.slick-active

Upvotes: 1

Related Questions