# Basic animation with duration
config <- animation_config(
duration = 500
)
# Complex animation configuration
config <- animation_config(
delay = 100,
duration = 800,
easing = "ease-in-out",
direction = "alternate",
fill = "forwards",
iterations = 2
)
# Infinite animation
config <- animation_config(
duration = 1000,
easing = "linear",
iterations = Inf
)
Run the code above in your browser using DataLab