V
V
Viktor2020-03-05 19:49:04
React
Viktor, 2020-03-05 19:49:04

How to load new slides in react slickSlider after the last slide?

There is a slick slider. How do I make sure that when I click on the last slide, I have new ones loaded. More precisely, how to load new ones, I know, the question is which slick method to use?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2020-03-05
@polyak-888

The documentation has an example
https://react-slick.neostack.com/docs/example/dyna...
if you just need looped slides, then there is a property infinite
https://react-slick.neostack.com/docs/example/simp ...
if you need to understand which slide you rewound, you will have to use https://react-slick.neostack.com/docs/example/slid...
on how to isolate the length wrote here: As in react-slick slider find out the total number of slides?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question