A
A
Anastasia2021-03-03 12:38:19
Slick
Anastasia, 2021-03-03 12:38:19

How to make slides with class change using slick js?

Friends, Hello everyone. I need your help, because I have been sitting with this problem for the third day.

I have to make a vertical carousel of three slides on the site. Each slide has its own styles (its own colors and different content).

In my case it is 3 slides. Each slide has a height of 100vh and its own class according to the background: . orange-bg , green-bg and purple-bg .

I need to use slick.js (they asked to use only this library) so that the user scrolls one slide at a time, and on a specific slide, the corresponding class is added to the body tag ( orange-bg , green-bg and purple-bg )
When the user reaches the last slide, he needs to show the footer.
603f578769ac789998367.jpeg

Help me please

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question