[READ-ONLY] Mirror of https://github.com/okikio/native. An initiative which aims to make it easy to create complex, light-weight, and perfor okikio.github.io/native
687 B · 19 lines
Markdown
at beta

loop #

Default Type
1 Boolean | Number | TypeCallback

Determines if the animation should repeat, and how many times it should repeat.

// Loop forever
animate({
    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],
});