Helper function to build animations.
enter()
Animation$enter(animation = NULL, easing = NULL, delay = NULL, duration = NULL)
animation
Name of animation; clipIn
, zoomIn
,
pathIn
, scaleInY
, scaleInX
, fanIn
, or fadeIn
.
easing
Name of easing function.
delay, duration
Delay and duration in milliseconds.
Animation to use on enter
leave()
Animation$leave(animation = NULL, easing = NULL, delay = NULL, duration = NULL)
animation
Name of animation; lineWidthOut
,
zoomOut
, pathOut
, or fadeOut
.
easing
Name of easing function.
delay, duration
Delay and duration in milliseconds.
Animation to use on leave
appear()
Animation$appear( animation = NULL, easing = NULL, delay = NULL, duration = NULL )
animation
Name of animation; clipIn
,
zoomIn
, pathIn
, scaleInY
, scaleInX
, fanIn
,
or fadeIn
.
easing
Name of easing function.
delay, duration
Delay and duration in milliseconds.
Animation to use on appear
update()
Animation$update( animation = NULL, easing = NULL, delay = NULL, duration = NULL )
animation
Name of animation; fadeIn
, or fanIn
.
easing
Name of easing function.
delay, duration
Delay and duration in milliseconds.
Animation to use on appear
print()
Animation$print()
retrieve()
Animation$retrieve()
Retrieve the animation list
clone()
The objects of this class are cloneable with this method.
Animation$clone(deep = FALSE)
deep
Whether to make a deep clone.
# create animation anim <- Animation$ new()$ appear( duration = 2000, delay = 500 ) iris %>% g2(asp(Sepal.Length, Sepal.Width, color = Species)) %>% fig_point(anim)