Skip to content
Browse library
DESIGN SYSTEM · MOTION

Motion

Motion that explains, not distracts. A practical guide to BIU UI's pure-CSS motion tokens, timing ranges, reusable patterns, and accessible reduced-motion fallbacks.

BIU UI achieves responsive, physical motion using pure CSS custom properties and React 19 state — with zero runtime animation library overhead. Every rule below applies directly to our 50 core components and 13 live blocks such as full-page calendars and agent workspaces.

01 — DECISION FRAMEWORK

Four questions before motion

The best motion decision is made before choosing a duration or cubic-bezier curve.

01Check frequency

Actions triggered dozens of times a day (tabs, menus, buttons) must feel immediate. Reserve expressive motion for rare transitions.

100× a day: stay under 180ms. Occasional moments: subtle delight is allowed.
02Name the purpose

Motion should confirm input, explain spatial origin, preserve object continuity, or clarify a state change. Decoration alone is noise.

If you cannot explain why it moves, remove the movement.
03Choose the physics

Use ease-out for entrances and sliding indicators, ease-in-out for on-screen layout shifts, and a restrained pop only for small selection confirmations.

Match the curve to the object’s job, not personal preference.
04Design the fallback

Reduced motion is a first-class state. Keep opacity, color, and instant feedback while removing travel, scale, and overshoot.

Keep meaning. Remove travel.
02 — CURVES & TOKENS

Use one motion language everywhere

Choose curves by the object's job. Compare all three BIU UI easing tokens over the exact same distance and duration below:

Compare the curvesSame distance and duration. Different physical jobs.
Ease Out--biu-ease-outcubic-bezier(.22, 1, .36, 1)
Entrances, sliding tab indicators, dropdown highlight glides. Responds immediately and settles quietly.
Ease In-Out--biu-ease-in-outcubic-bezier(.65, 0, .35, 1)
Objects already on screen that reposition, expand, or switch appearance smoothly.
Tactile Pop--biu-ease-popcubic-bezier(.2, 1.35, .4, 1)
Small selection confirmations (Calendar selected day, Switch thumb). Never use for screen-wide travel.
03 — TIMING

Fast enough to feel immediate

Under 300ms is the default for interface motion. Exits should run slightly faster than entrances so the UI never blocks the user's next action.

04 — PATTERNS & RECIPES

Patterns you can copy

Try each live interaction below, review its Purpose and Avoid rules, and expand the recipe to copy the exact token-driven CSS used across BIU UI.

Feedback

Press feedback

Acknowledge pointer press immediately before an async action finishes. Keep scale restrained so the surface feels firm, not rubbery.

Purpose
Confirms the interface heard the user on the very first frame.
Avoid
Large scale drops (0.90), slow rebounds, or applying press scale to static containers.
Movement

Sliding indicator

Move a single shared highlight pill between tabs or menu items using measured transform offsets instead of mounting separate backgrounds.

Purpose
Preserves spatial continuity as focus or selection moves across siblings.
Avoid
Animating layout width/left directly without GPU-friendly transforms, or skipping initial measurement.
Entrance

Origin-aware surface reveal

Popovers, dropdowns, and dialogs enter from their trigger origin with a subtle 4% scale and opacity fade so they finish before the user reads them.

Purpose
Connects floating layers to the control that summoned them without a jarring cut.
Avoid
Half-second modal entrances, bounce curves on popovers, or staggered animations across every menu row.
New surfaceOrigin-aware · 160ms · Ready before focus.
State change

Directional content swap

For view switches (Month / Week / Day or Preview / Code), keep travel to 6–8px and pair it with a crisp fade so context stays anchored.

Purpose
Signals what changed and in which direction without disorienting full-page slides.
Avoid
Full-width carousels for tabs, filters, or high-frequency calendar navigation.
Live component viewShort 5px travel clarifies change without disorienting layout jumps.
Meaning

Tactile selection pop

Reserve slight spring overshoot (--biu-ease-pop) strictly for compact binary confirmations like selecting a calendar day or toggling a pin.

Purpose
Rewards deliberate selection with a crisp, memorable physical settle.
Avoid
Using overshoot on modals, drawers, lists, or any element larger than 48px.
Click any date to feel --biu-ease-pop
05 — ACCESSIBILITY

Reduced motion is a designed state

Do not strip every visual cue. Keep meaning. Remove travel. Preserve opacity, color, and instant state confirmation while removing translation, scale, and spring overshoot.

Test reduced motion on this page

Toggle this switch to disable travel and curve animations in the demos above while keeping state changes intact.

@media (prefers-reduced-motion: reduce) {
  /* Remove positional travel, scale, and overshoot */
  [data-biu="popover-popup"][data-starting-style],
  [data-biu="popover-popup"][data-ending-style] {
    transform: none;
  }
  [data-biu="tabs-indicator"],
  [data-biu="dropdown-highlight"],
  [data-biu="calendar-grid"] {
    animation: none !important;
    transition: none !important;
  }
}