Skip to contents

The primary mechanism for targeting individual elements annotated by svg_annotate() (in gganime) or by hand.

Usage

anime_target_id(id)

Arguments

id

Character scalar. Value of the data-animejs-id attribute.

Value

A CSS selector string of the form "[data-animejs-id='<id>']".

Examples

anime_target_id("c1")
#> [1] "[data-animejs-id='c1']"