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.
Four questions before motion
The best motion decision is made before choosing a duration or cubic-bezier curve.
Actions triggered dozens of times a day (tabs, menus, buttons) must feel immediate. Reserve expressive motion for rare transitions.
Motion should confirm input, explain spatial origin, preserve object continuity, or clarify a state change. Decoration alone is noise.
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.
Reduced motion is a first-class state. Keep opacity, color, and instant feedback while removing travel, scale, and overshoot.
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:
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.
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.
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.
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.
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.
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.
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.
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.
@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;
}
}