'How to trigger animejs on a specific Swiper slide?
You can see my code using this sandbox: https://codesandbox.io/s/strange-shtern-e98gvu?file=/src/App.js
Basically, what I want to do is play the animejs animation on slide 2 only (the box will appear if it's slide 2), and it will play the reverse animation on slide 1 and 3.
Right now, the animation plays on slide 1, reverses on slide 2, and plays on slide 3.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|