Skip to contents

Fade-in animation

Usage

fade_in(scene, duration = 1, easing = "smooth", direction = NULL, shift = 0.5)

Arguments

scene

A Scene object

duration

Duration in seconds

easing

Easing function

direction

Direction to fade from ("up", "down", "left", "right")

shift

Amount to shift during fade

Value

The Scene object (invisibly) for piping

Examples

if (FALSE) { # \dontrun{
scene("fade_demo") %>%
  add_text("Hello!") %>%
  fade_in(duration = 1) %>%
  render()
} # }