Docs / Motion
UI Catalogue: Motion and interaction
Load ui-catalogue first (CLI/repo D:/Projects/ui-catalogue/ui-catalogue). To see motion use python3 scripts/uic.py strip <id> --frames 12 --cols 4 -o /tmp/s.jpg and read the image (frame spacing is printed). Posters of videos are often blank first frames.
Which reference file
| Need | File (references/) |
|---|---|
| Timing bands, easing/spring feel, stagger rhythm, anticipation/overshoot, feedback loops, delightful vs gimmicky, quantitative facts | interaction-principles.md (read first for any UI animation) |
| 24 named interaction patterns with build notes (pill-to-panel morph, collapse-expand dock, button state machine, loading-to-result pill, success check, OTP fill, gooey pull, spring indicator, dock magnification, magnetic hover, hover reveal, drag reorder, card-stack swipe, physics toss, shared-element expansion, number ticker, skeleton->content, staggered hero, preloader->hero, scroll-pinned stack, scroll-scrubbed 3D, live slider, confetti, multiplayer cursors, Rive state machine, sound-paired UI) | interaction-patterns.md |
How to build each in CSS (linear() springs, @starting-style, scroll-driven animations), WAAPI, View Transitions, motion.dev/Framer, GSAP+ScrollTrigger+Lenis, Rive, Lottie, Three.js; reduced-motion; performance checklist |
motion-implementation.md |
| 3D hero loops, iridescent orbs, liquid glass lenses, ribbons, tunnels, generative/shader loops, AI video, stop-motion | motion-3d-abstract.md |
| Logo reveals, brand reels, identity systems in motion, icon morphs, showreels | motion-brand-logo-icons.md |
| Kinetic typography, animated posters, character loops (Rive-style, painterly, clay), 2D animation, data viz | motion-type-poster-character.md |
Measured facts (from ~540 clips frame-differenced, ~17 filmstrips; all ~ estimates)
- Duration bands: micro-interactions median ~0.33 s; hover ~0.43 s; morphs ~0.47 s; page transitions ~0.58 s. Exits ~0.7x the matching entrance. Whole hero entrance sequences resolve in 1-2.6 s.
- Easing is overwhelmingly ease-out (84% of morph bursts peak in the first 35% of duration). Overshoot <= ~3% in functional UI; larger overshoot only for toys (dock hover, dice buttons, gooey drops). Springs/magnetic are rare (29 "spring", 2 "magnetic", 0 "haptic" in descriptions; "smooth" 574).
- Signature move = container morph: one object keeps identity while changing shape. Example measured dock open: squeeze ~70 ms -> hold ~70 ms -> expand ~170 ms, rows fade in ~45 ms apart.
- Entrance order: subject first, headline words ~100-130 ms apart, lines ~150-300 ms apart, chrome last.
- Motion section: duration is bimodal: tight 3-6 s hard loops (orbs, logos, type, icon morphs) vs 40-110 s narrative reels. 3D/abstract loops are periodic motion with no keyframed story: centred subject on black/neutral grey, colour comes from the material (glass, iridescence). Brand/poster work fixes the layout and lets one element move; posters use stepped low-fps cell loops; brand reels use cuts not dissolves.
- Type behaviours: per-letter spring-in with seeded random rotation, one treatment per beat, glyph-field masks, zoom-through exits.
- Tool names are rarely in the metadata (~10 of 107 3D items): statements about Blender/AE/Rive/WebGL are
[inferred].
Rules to apply
- Animate transform, opacity, clip-path, filter (sparingly); never layout properties. Keep long tasks off the main thread.
- Default tween for chrome: 200-350 ms
cubic-bezier(.2,.8,.2,1); hover 120-180 ms; exits 70% of enters. Use real springs (stiffness ~300-500, damping ~25-40) only for physical objects and shared-layout morphs. - Close the feedback loop: every action shows idle -> working -> success/failure -> reset with stable geometry (no layout jump); success states self-dismiss.
- Stagger with consistent delta (40-130 ms) and cap total sequence (<= 2.6 s); do not animate everything.
- Respect
prefers-reduced-motion: replace parallax/auto-play/large transforms with fades or static; pause loops. Catalogue shows no reduced-motion behaviour, so this is mandatory guidance, not an observed pattern. - Loops must be seamless: drive noise/rotation from
t = 2π·time/Ton a circle in noise space; first and last frames equal. - Provide non-gesture alternatives (buttons for swipe/drag), and a real
<input>under any fancy slider/toggle. - For video deliverables (HyperFrames, Remotion, AE): storyboard beats in seconds first; see
ui-catalogue-brand-adsfor film structure.
Storyboard: 10-second logo sting (synthesised from the logo-reveal cards; adjust beats to the brand)
| t (s) | Beat | Technique (see motion-brand-logo-icons.md cards) |
|---|---|---|
| 0.0-0.6 | Field only (brand bg), 1 faint construction/grid line draws | stroke-dashoffset on SVG guides; hold black/neutral |
| 0.6-2.4 | Mark builds: geometry draws or morphs from a simple shape | mark-to-mark morph: equal-point paths, 0.8-1.2 s cubic-bezier(.7,0,.2,1); or chrome extrude with rotating HDRI |
| 2.4-4.0 | Material pass: specular sweep or colour flood (one accent only) | linear-gradient mask sweep 0.9 s; avoid animating roughness |
| 4.0-6.0 | Wordmark enters (per-letter or masked slide), one treatment | per-glyph spring-in with seeded random rotation, 40-80 ms stagger |
| 6.0-8.5 | Lockup holds, tagline fades (<= 6 words), subtle idle motion | hold >= 1.5 s so it can be read |
| 8.5-10.0 | Tail: URL/CTA pill or silent hold, loop-safe fade | match first frame if the sting loops |
Make it loop-safe or fade-out clean; export 1920x1080 + 1080x1080 + alpha WebM; add a static end frame for platforms that autoplay muted. Source cards: uic.py card "Logo reveal", uic.py card "Kinetic wordmark". |
Workflow
- Name the pattern (table above). Read its card + principles.
strip2-3 reference IDs; write a timeline table: t0..tn, property, from->to, easing.- Implement with the tool listed in
motion-implementation.mdsection 0 for that pattern; add reduced-motion branch. - Record/inspect: compare filmstrip of your result with the reference filmstrip (same frame count) for pacing.