How to trigger animejs on a specific Swiper slide?

Viewed 38

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.

0 Answers
Related