useMotionTokens

Transition settings for motion-v, read from the duration tokens each call, so a preset switch and prefers-reduced-motion (which shortens every duration to 80 / 100 / 70ms) reach JS-driven animation the same way they reach CSS transitions.

Install: pnpm add-composable useMotionTokens

With motion-v

Call enter() and exit() when the animation starts, not once at setup, so a preset switched mid-session is picked up.

API