S
S
Sergey Frolov2020-06-02 02:05:26
JavaScript
Sergey Frolov, 2020-06-02 02:05:26

How to combine the work of slick-slider and aos.js?

Animation of blocks using aos.js does not work if slick-slider is connected on the page.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Shnupel, 2021-08-29
@Shnupel

Hello, I ran into the same problem, the solution is this: for global initialization, we give the offset value negative

H
humster_spb, 2021-11-11
@humster_spb

In fact, this is solved quite simply - you need to call AOS.init () after the initialization of the slider. And to be sure, call it not in $(document).ready, but after all the scripts in $(window).load - then the slider is guaranteed to start, the page will take the desired shape, and aos will work correctly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question