Code
library(slickR)
## Using the slickR package, which wraps a javascript carousel library slick
<- list.files("frames/", pattern=".jpg", full.names = TRUE)
butterfly_frame_filenames
slickR(butterfly_frame_filenames, height = 250, width='80%') +
settings(dots = TRUE,
infinite= TRUE,
speed = 0,
fade = TRUE,
cssEase = 'linear')