Skip to contents

Adds a pause to the animation timeline. During the pause, all visible objects remain static.

Usage

pause(scene, duration = 1)

wait(scene, duration = 1)

Arguments

scene

A Scene object

duration

Duration of the pause in seconds

Value

The Scene object (invisibly) for piping

Examples

if (FALSE) { # \dontrun{
scene("demo") %>%
  add_text("First") %>%
  write_in() %>%
  pause(2) %>%
  add_text("Second") %>%
  write_in() %>%
  render()
} # }