Skip to contents

Animates text or shapes as if being written/drawn. Wraps the Create / Write Animation classes.

Usage

write_in(scene, duration = 1, easing = "smooth", lag_ratio = 0.05)

Arguments

scene

A Scene object

duration

Duration in seconds

easing

Easing function

lag_ratio

Stagger between characters (0-1)

Value

The Scene object (invisibly) for piping

Examples

if (FALSE) { # \dontrun{
scene("write_demo") %>%
  add_latex("f(x) = x^2") %>%
  write_in(duration = 2) %>%
  render()
} # }