| anime_playback | R Documentation |
Sets autoplay, looping, direction, speed, and optional controls UI on an
anime_timeline or anime_animation. Arguments left as NULL keep the
settings already stored on the object.
anime_playback(
x,
autoplay = NULL,
loop = NULL,
loop_delay = NULL,
playback_rate = NULL,
reversed = NULL,
alternate = NULL,
controls = NULL
)
x |
An |
autoplay |
Logical. Start playing immediately on load. |
loop |
Logical or positive integer. |
loop_delay |
Numeric. Delay in milliseconds between iterations. |
playback_rate |
Numeric. Playback speed multiplier (1 is normal speed). |
reversed |
Logical. Play in reverse from the end. |
alternate |
Logical. Alternate direction on each iteration (requires
|
controls |
Logical. Inject a play/pause/seek control bar into the widget container. |
The modified anime_timeline or anime_animation object.
anime_timeline() |>
anime_playback(loop = TRUE, alternate = TRUE, controls = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.