S
S
Saberwalker2019-01-01 10:40:23
JavaScript
Saberwalker, 2019-01-01 10:40:23

How to initialize slick after loading content with ajax?

Hello.
There is a site with cats, where each category card is implemented using a slick carousel.
The problem is that when you try to load the remaining content, slick does not work, I read it - I realized that it needs to be "restarted", but I just can't do it, I tried many ways ( link to a similar problem ), I'm probably doing something wrong.
Catalog page volineyq.beget.tech/koshki

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2019-01-02
@vaajnur

$('.my-slider')[0].slick.refresh()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question