How to refresh the special effects when swiper4 is switched

the special effects in swiper occur at the same time. How can I load the special effects when switching to the current slide, or reload the animation after switching

?
Mar.05,2021

this is a delay-based animation, so for each effect, you need to count delay and add delay.

for example, if there are four effects, the first one plays 0.6 seconds, the second and third are both 0.4 seconds, and the fourth is 1 second, then delay is:

  1. the first (usually cut to this page to give a base delay, for example, 0.6 seconds) 0.6 seconds;
  2. the second delay is 0.6 (first delay) + 0.6 (first playback) + 0.6 (animation interval) = 1.8;
  3. the third and second are put together, so delay is also 1.8
  4. the fourth delay is 1.80.4 (second third playback) + 0.6 (animation interval) = 2.8;

you may need to fine-tune it later depending on the playback effect.


http://www.swiper.com.cn/usag. can achieve the effect with this. Thank the boss above for his answer. Although it is not the answer I need, it is also very detailed.

Menu