Elastic UI · Design research
Motion refresh design research project
← → switch slides · T light / dark · use the menu on the left to open each page
02 · Motion groups
Motion groups
Every component falls into one group. Two are defined so far; the other five are still to define.
| 1Layer in motionDefined | 2Reveal in motionDefined | 3IndicatorTo define | 4SwapTo define | 5Direct manipulationTo define | 6LoopTo define | 7Press, hover, focusTo define | |
|---|---|---|---|---|---|---|---|
| What it is | Sits on top of the page; nothing else moves | Takes space; the layout around it makes room | One mark moves or changes state; the content does not move | Content is replaced in place | The element follows the pointer | Continuous status that never settles | Immediate feedback on interaction |
| Examples |
|
|
|
|
|
|
|
| Motion idea | Fade in with a small drift; faster fade out | Size grows first, content fades in behind; settles with resistance | The mark slides, grows or is drawn; colors stay EUI's | Crossfade in place, with no height jump | No easing while dragging; settles on release | Time-based; needs a linear curve | Color only, at extraFast |
| Slide | Open the slide → | Open the slide → | Not yet | Not yet | Not yet | Not yet | Not yet |
EUI animation tokens
Available as euiTheme.animation.*. Two kinds: speed tokens (how long) and easing tokens (how it feels while moving). Values below are the defaults in the Borealis theme.
Priorities: where to start
Each link opens a page with only that component's playground: the real EUI component with the current behavior on the left (fixed) and the same component on the right, where you can change the speed and easing, or add an animation where EUI has none. Use the chips at the top of that page to jump between them, or the link back to return here.
Your picks
- TooltipYour pickHard-coded ease-out and an instant exit. Proposal: a reveal that rises and settles.2,000+ Kibana files (search count looks capped)Open playground →
- AccordionYour pickHeight animates but the arrow snaps. Proposal: arrow and content move with the height.334 Kibana filesOpen playground →
- TabsYour pickThe active underline jumps. Proposal: slide one indicator between tabs.145 Kibana filesOpen playground →
Suggested by usage
- PopoverA slow bounce on every dropdown. Retune the speed and easing.763 Kibana files (includes popover parts)Open playground →
- CalloutAppears and dismisses instantly, so the layout jumps.670 Kibana filesOpen playground →
- FlyoutAnimates in but vanishes on close; the side panel has no animation.662 Kibana files (includes flyout parts)Open playground →
- Combo boxPills and options snap in and out.471 Kibana filesOpen playground →
- TableHard-coded 1s loading line; rows change with little feedback.425 Kibana filesOpen playground →
Usage is the number of files in the elastic/kibana repository that reference the component, from GitHub code search. It is approximate, counts files rather than instances, and prefix matches include sub-components.
New proposed treatments
1. Speeds: how long a change takes
Edit the speeds in the token playground →
Every dot travels the same distance with a neutral ease-out, so the only difference is duration. Rule of thumb: the bigger or more significant the change, the slower the token.
2. Easings: the character of the motion
Edit the easing curves in the token playground →
Easing is the acceleration curve. The graph shows progress (vertical) over time (horizontal).
bounce
Overshoots the target (the curve rises above 100%) and settles back. Playful, draws attention. Good for things that "pop" in: toasts, badges, success states.
resistance
Starts fast, then slows heavily, like pushing against friction. Never overshoots. Feels responsive and solid. Good for panels, flyouts and anything that slides in.
3. Playground: every component that uses the tokens
These are the actual @elastic/eui components (v123, Borealis theme). Each sits in its own EuiThemeProvider that remaps the animation tokens that component reads, so you can set speed and easing per component. Trigger the component again after changing its tokens. Jump to one:
4. Components that don't use the tokens
From a scan of the installed @elastic/eui v123 component code. The "already use tokens" and "motion without tokens" groups are verified; the benefit column is design judgment, not from the EUI docs.
Already use animation tokens
Their styles read euiTheme.animation.*, so they respond to theme changes.
Animate, but not with tokens
These have their own hard-coded durations or easings.
- BeaconPulse loops at 2.5s
ease-out, with a 0.25s delay on the small ring.needs a loop speed - Stat (loading)Pulse loops at 1.5s
ease-in-out.needs a loop speed - Loading spinner, chart, elastic0.6s linear spin; 1s chart and elastic loops. The loading logo uses only the easing token, with a fixed 1s.
needs a loop speed - SkeletonShimmer is a fixed 1.5s; only the easing is a token.
needs a loop speed - Basic table loading line1s linear infinite.
needs a loop speed - Indeterminate progressFixed 1s loop; only the easing is a token.
needs a loop speed - Toast countdown barLinear over the toast's lifetime. Linear is intentional here, so not a candidate.
keep as is - Tooltip, resizable container, data grid, date picker, badge, icon, list group, checkable cardUse the speed tokens but hard-code or default the easing. Their playgrounds are in section 3 with an easing override: Tooltip Resizable container Data grid Date picker Badge Icon List group Checkable card Drag and drop
needs a standard easing
Playgrounds
The real components with their hard-coded loops. Speed and easing here are demo overrides, not EUI tokens.
No motion at all, could benefit
No transition or animation in their code. Suggested tokens in the right column.
- ButtonHover, press and focus states change with no transition.
extraFast + resistance - TabsThe active tab and its underline jump instead of sliding or fading.
fast + resistance - Tree viewNodes expand and collapse instantly; could match the accordion.
normal + resistance - Callout and bannerAppear and dismiss instantly; could collapse height and fade. Open playground
normal + resistance - Combo box and selectablePills and options are added, removed and highlighted with no transition.
fast + resistance - Pagination, filter group, facetSelected-state changes snap.
fast + resistance - Inline editSwitching between read and edit mode is instant; could crossfade.
fast + resistance - Button groupThe selected button only changes color; no motion marks the new selection.
fast + resistance - Flyout and modal exitBoth animate in but vanish on close (the flyout push padding also jumps).
normal + resistance
Correction: I earlier listed the tour and the collapsible nav here. The tour opens each step as a popover, so it already uses the popover tokens (and a token delay on its beacon), and the collapsible nav is a flyout whose groups use the accordion, so both are already token-driven.
Playgrounds: now vs proposed
Each pairs the real component as shipped (left) with the same component plus a proposed motion (right). The proposal is added by the demo; it is not EUI behavior. Speed and easing only change the right side.
Probably fine static: layout and text helpers such as flex, spacer, title, text, aspect ratio, accessibility, i18n and portal.
euiCanAnimate (@media (prefers-reduced-motion: no-preference)). Wrap transitions in it so users who opt out of motion get none. This page respects that setting too.