Slick.js displays the current slide and the total number of slides

I'm having trouble displaying the current and total number of slides below the slick.js slides. Thanks for your help!

$('.recipeThumbs').slick({ dots: true, arrows: true, slidesToShow: 4, slidesToScroll: 4, infinite: true, responsive: [ { breakpoint: 768, settings: { dots: false, arrows: true, centerMode: true, centerPadding: '40px', slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 480, settings: { dots: false, arrows: true, centerMode: true, centerPadding: '40px', slidesToShow: 1, slidesToScroll: 1 } } ] }); 
+5
source share
1 answer

I really found the answer to my question in another stackoverflow post. Here is a link to it :)

Slick.js: get current and summary slides (i.e. 3/5)

+4
source

Source: https://habr.com/ru/post/1216491/


All Articles