Theme

Motion

Duration and easing tokens for Ontopix transitions and animations.

Production

Motion is a small design surface with large UX impact. These tokens are centralized here so all Ontopix products move at the same speed, with the same feel.

Duration Tokens

TokenValue (ms)TailwindUse case
instant0duration-0State changes with no transition
fast75duration-75Micro-interactions, hover states
normal150duration-150Most transitions, button feedback
moderate300duration-300Panel slides, modal entry
slow500duration-500Complex animations, page transitions

Prefer fast or normal for most interactions. Reserve slow for complex, attention-grabbing transitions (e.g. first-run tours).

Easing

Default: ease-out — Ease-out feels responsive; content arrives quickly

TokenCSS valueTailwindUse case
ease_outcubic-bezier(0, 0, 0.2, 1)ease-outElements entering (most common)
ease_incubic-bezier(0.4, 0, 1, 1)ease-inElements exiting
ease_in_outcubic-bezier(0.4, 0, 0.2, 1)ease-in-outElements moving on screen
linearlinearease-linearColor/opacity changes, progress bars

Quick Guide

ScenarioEasing
Enteringease-out (fast arrival)
Exitingease-in (quick departure)
Movingease-in-out (smooth movement)

Reduced Motion

All Ontopix animations must respect prefers-reduced-motion. When set, durations collapse to 0ms and transforms are replaced with fades (or omitted entirely).

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

Automation-friendly alternative in Tailwind:

<div class="motion-reduce:transition-none motion-reduce:transform-none transition duration-300">
</div>