Explain the change.
Movement connects an action to its result. Reveal where a panel comes from, confirm a save, or show which content has expanded.
A little movement. A clear direction. Always considerate.
These patterns extend the source app’s ease-out curve and 300ms button transition. Component timings below are proposed defaults for consistent product experiences.
Movement connects an action to its result. Reveal where a panel comes from, confirm a save, or show which content has expanded.
Use one clear movement at a time. Short distances and a confident ease-out feel purposeful; repeated bouncing and decorative loops compete with the message.
Start on interaction. Keep small feedback fast and give larger surfaces a little more time. Never delay a task while an animation finishes.
Respect reduced motion. Remove translation, scaling and stagger while preserving state changes, feedback and keyboard access.
Use cubic-bezier(0.165, 0.84, 0.44, 1) for entrances. Exit with ease-in and a shorter duration. Keep related elements moving together.
120–160msHover, press and small state changes
200ms in / 150ms outToasts and compact popovers
300ms in / 200ms outDrawers and dialogs
400–600msA single entrance on a brand page
Confirm a completed action without interrupting the task. Fade in and rise 8px over 200ms; fade out over 150ms. Keep the message brief, announce it politely and leave focus where it is.
This preview dismisses after 5 seconds and pauses while hovered. Use persistent messages for errors or actions that need a response; offer dismissal and enough reading time.
Keep the current task in context while revealing supporting content. Slide from the opening edge over 300ms, with a quiet backdrop fade. Reverse the same path over 200ms to close.
Details, filters or a secondary task.
Modal drawers contain keyboard focus, close with Escape, and return focus to their trigger. On small screens, keep the close control visible and allow the panel to scroll.
Ask for a focused decision. Fade in with a subtle 0.98 → 1 scale over 300ms; exit over 200ms. Avoid dramatic zooms. Use a dialog only when the task needs the user’s full attention.
A focused surface with an explicit next step.
Reveal content in place over 200ms. Animate the container height and rotate the disclosure indicator together. Keep the heading stationary so the user keeps their place.
Clear direction, considered pace and enough energy to make the next step feel natural. Every movement should help someone understand what just happened.
Use a 16px rise and fade for a key piece of editorial content. Reserve the longer 600ms timing for these moments. Keep essential content available immediately and avoid replaying on every scroll.
Animate opacity and transforms for floating surfaces. Keep timing values named, cancel interrupted transitions, and preserve the final state when motion is reduced. Loading feedback should describe progress and stop when the task completes.
:root {
--motion-feedback: 150ms;
--motion-enter: 300ms;
--motion-exit: 200ms;
--motion-ease: cubic-bezier(0.165, 0.84, 0.44, 1);
}
.surface {
animation: surface-in var(--motion-enter) var(--motion-ease);
}
@keyframes surface-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
.surface { animation: none; }
}