Rotates the object smoothly
1 2 3 | animation_ease_in(rdog, id = NULL, addTo = NULL, frames = Inf,
framesPerCycle = 150, pause = 0, radiansPerCycle = tau,
rotateAxis = "y", power = 2)
|
rdog |
rdog object to add the animation to. Can be a character if called from a code block in shiny |
id |
Id of the animation. You should set this if you want to be able to check if this animation is running when getting inputs in a shiny app |
addTo |
Which element should this animation be added to. If NULL, animation will be set to the entire illustration. |
frames |
How many frames should the animation run for. Usefult for animations triggered in shiny applications |
framesPerCycle |
How many frames should a single eased in cycle take |
radiansPerCycle |
How many radians should the object rotate per cycle. By default a single cycle will cause a full rotation. |
rotateAxis |
Axis of rotation |
power |
Exponential power of the easing curve. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.