loop
Default | Type |
---|---|
1 | Boolean | Number | TypeCallback |
Determines if the animation should repeat, and how many times it should repeat.
// Loop forever
animate(ASTRO_ESCAPED_LEFT_CURLY_BRACKET
target: ".div",
easing: "linear",
loop: true, // Using `loop: Infinity,` would also have worked
// or
loop: 5, // If you want the animation to loop 5 times
opacity: [1, 0],
});