Something went wrong. Try again.
[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
Something went wrong. Try again.
layout: layout:PagesLayout #
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],
});