I’ve got a looped animation that looks like this:
foreground.animate(1000, '>').stroke({ opacity: 0, width: 34 }).loop();
I want to incorporate a delay of 800ms into each loop. Specifically before each time the stroke animates to { opacity: 0, width: 34 }
. I’ve tried adding a delay in the animation:
foreground.animate(1000, '>', 800).stroke({ opacity: 0, width: 34 }).loop();
… but that just delays the first loop. Then I tried adding delay()
:
foreground.animate(1000, '>').stroke({ opacity: 0, width: 34 }).delay(800).loop();
… but that, too, only adds the delay once.
Is it possible to have each loop include an 800ms delay at the beginning of each loop?