Skip to main content

Variable: motion

const motion: object

Reusable route factories for position transitions.

Type Declaration​

NameTypeDescription
arc()(degrees?: number) => MotionPathCircular sweep in degrees, from -180 to 180. Positive is clockwise. Default: 0.
bezier()(options: BezierMotionOptions | ((from: Point, to: Point) => BezierMotionOptions)) => MotionPathCubic Bézier controls in stage units, fixed or resolved per movement. No default controls.
spiral()(options?: SpiralMotionOptions) => MotionPathWind inward around the destination. Default: 1 clockwise turn; range: -10 to 10 turns.