D
D
Diana2019-04-18 17:07:32
Slick
Diana, 2019-04-18 17:07:32

Slick.js - how to count the number of slides?

How to use slick.js to count the number of rows with slides?
In this example , the total number of all slides is displayed, but you need to do this: if the slider has 6 slides, and 3 is specified in the slidesToShow parameter, then not 1/6, but 1/2 should be displayed in the block with radio buttons.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-04-18
@dSpring

Divide the number of slides by slidesToShow and round up. For example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question