| anime_add | R Documentation |
Pipe-friendly. Each call appends one segment: a set of CSS property animations applied to a target selector.
anime_add(
timeline,
selector,
props,
offset = "+=0",
duration = NULL,
ease = NULL,
delay = NULL,
stagger = NULL
)
timeline |
An |
selector |
CSS selector string identifying the SVG/HTML elements to
animate. Use |
props |
A named list of property animations. Values may be scalars,
two-element numeric vectors (from/to), |
offset |
Timeline position. |
duration |
Overrides the timeline default for this segment. |
ease |
Overrides the timeline default for this segment. |
delay |
Overrides the timeline default for this segment. |
stagger |
An |
The modified anime_timeline object.
anime_timeline() |>
anime_add(
selector = anime_target_class("circle"),
props = list(opacity = anime_from_to(0, 1)),
duration = 600
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.