Variable: motion
constmotion:object
Reusable route factories for position transitions.
Type Declaration
| Name | Type | Description |
|---|---|---|
arc() | (degrees?: number) => MotionPath | Circular sweep in degrees, from -180 to 180. Positive is clockwise. Default: 0. |
bezier() | (options: BezierMotionOptions | ((from: Point, to: Point) => BezierMotionOptions)) => MotionPath | Cubic Bézier controls in stage units, fixed or resolved per movement. No default controls. |
spiral() | (options?: SpiralMotionOptions) => MotionPath | Wind inward around the destination. Default: 1 clockwise turn; range: -10 to 10 turns. |