textillate: Textillate

Description Usage Arguments Details See Also Examples

Description

Animate text

Usage

1
2
3
4
textillate(text, ..., loop = FALSE, min.display.time = 2000,
  initial.delay = 0, auto.start = TRUE, in.effects = list(),
  out.effects = list("hinge"), type = "char", width = NULL,
  height = NULL, elementId = NULL)

Arguments

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: char and word)

width, height

dimensions.

elementId

id of html element.

Details

See http://textillate.js.org/ for examples. reserve = TRUE doesn't make sense with sync = TRUE. Generated element includes tlt class.

See Also

textillateIn, textillateOut

Examples

 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
  )

JohnCoene/textillate documentation built on May 9, 2019, 8:03 p.m.