Initialise an Anime.js timeline
Usage
anime_timeline(duration = 1000, ease = anime_easing(), delay = 0, loop = FALSE)Arguments
- duration
Default duration in milliseconds for all segments.
- ease
Default easing for all segments, an
anime_easingobject or an Anime.js easing name string.- delay
Default delay in milliseconds between segments.
- loop
Logical or positive integer.
FALSEfor no looping,TRUEfor infinite looping, or a fixed number of iterations.
Examples
anime_timeline(duration = 800, ease = anime_easing())
#> $defaults
#> $defaults$duration
#> [1] 800
#>
#> $defaults$ease
#> $name
#> [1] "outQuad"
#>
#> $params
#> list()
#>
#> attr(,"class")
#> [1] "anime_easing"
#>
#> $defaults$delay
#> [1] 0
#>
#>
#> $loop
#> [1] FALSE
#>
#> $segments
#> list()
#>
#> $events
#> list()
#>
#> attr(,"class")
#> [1] "anime_timeline"