Skip to content
Advertisement

Anime.js – pause between loop iterations

I have this animation:

JavaScript
JavaScript
JavaScript

I want to make a pause between animation loops: so when brush returns to the final point, it will stay here a bit before new movement starting. But I have no idea how to fix animation (timings, maybe?) properly to achieve it.

Thank you in advance!

Advertisement

Answer

Ok, finally I got it.

In arrayed keyframes in anime.js delays are not absolute, but kind of relative to each other. So I can fix delays in the array like that:

JavaScript

and it will work properly

Advertisement