Description Usage Arguments Details See Also Examples
Animate text
1 2 3 4 |
text |
text to animate. |
... |
any element. |
loop |
enable looping. |
min.display.time |
sets the minimum display time for each text before it is replaced. |
initial.delay |
sets the initial delay before starting the animation. |
auto.start |
set whether or not to automatically start animating. |
in.effects, out.effects |
custom set of 'in' and 'out' effects. This effects whether or not the character is shown/hidden before or after an animation. |
type |
set the type of token to animate (available types: |
width, height |
dimensions. |
elementId |
id of html element. |
See http://textillate.js.org/ for examples.
reserve = TRUE
doesn't make sense with sync = TRUE
.
Generated element includes tlt
class.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # may not work in RStudio viewer, open in browser
textillate("Textillate") # basic
textillate("Effects", `in` = list(effect = "rollIn")) # effects
textillate("Duration and effect", `in` = list(effect = "flipInX"), min.display.time = 5000)
# OR
textillate("Duration and effect", min.display.time = 5000) %>%
textillateIn(
effect = "flipInX",
delay = 1000
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.