javascript - Two swipers are nested. When the outer swiper animation is initialized, the animated elements are hidden and not displayed.
我想大声告诉你
我想大声告诉你 2017-05-19 10:32:28
0
1
768

Initial state


Slide to the second page and then slide back. The animation element will appear and the animation will play normally

JS code

我想大声告诉你
我想大声告诉你

reply all(1)
淡淡烟草味

Double swiper nesting requires two swiper objects to be instantiated. The problem caused by the one instantiated object will be overwritten by the other. Therefore, the swiper animation on the homepage is hidden during the initial display. The solution is to just This problem can be solved by writing the code for instantiating the inner swiper object before the outer swiper code.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template