effect-motion
API Referenceeffect-motionNamespacesMotionType aliases

RotationInput

type RotationInput = number | Partial<Position>;

Type Alias: RotationInput

type RotationInput = number | Partial<Position>;

Defined in: packages/motion/src/Motion.ts:744

What rotate / rotateTo accept, in RADIANS: a number is an in-plane spin (z, counter-clockwise with y up); a partial vector names Euler channels (applied X→Y→Z, the same orientation rotation always meant). Omitted channels hold their current value.

On this page