G
G
Gasgolder2019-07-30 11:52:40
css
Gasgolder, 2019-07-30 11:52:40

How to style multiple sliders independently?

There are several sliders on the page (slick slider). If I change the styles of the slick-current class, then the styles change for all sliders accordingly. Question: how to make sure that when the slick-current class changes, the styles change for a specific slider?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2019-07-30
@Gasgolder

Cascade
#slider1 .slick-current {}
#slider2 .slick-current {}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question