| anime_stagger | R Documentation |
When applied to a multi-element selector, Anime.js distributes animation start times across elements according to the stagger value.
anime_stagger(
value,
from = "first",
start = NULL,
reversed = FALSE,
grid = NULL,
axis = NULL,
ease = NULL
)
value |
Numeric. Base delay in milliseconds between each element. |
from |
One of |
start |
Numeric. Starting value added to every staggered delay. |
reversed |
Logical. Reverse the stagger order. |
grid |
Integer vector of length 2 ( |
axis |
One of |
ease |
Easing applied to the stagger distribution itself, an
|
An anime_stagger object.
# Simple linear stagger, 100 ms between elements
anime_stagger(100)
# Stagger from centre outward
anime_stagger(200, from = "center")
# 2-D grid stagger along the x axis
anime_stagger(50, grid = c(3, 4), axis = "x")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.