Adds editorial timing semantics to renderer-neutral movement data, including
tables from explodemap::transition_data() and
explodemap::layout_children(). The browser only needs to interpolate the
supplied anchors according to the returned order and timing columns.
Usage
build_transition_plan(
movement,
duration = 650,
easing = "elastic",
stagger = 12,
overshoot = 1.25
)Arguments
- movement
Data frame with
feature_id, original/final anchors, movement distance, and optionalanimation_order(positive whole numbers; fractional values are rejected, not truncated).- duration
Per-feature duration in milliseconds.
- easing
Easing identifier carried to the renderer.
- stagger
Delay between successive animation-order values.
- overshoot
Non-negative overshoot parameter.
