UI Catalogue Connect AI
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)

Rules to apply

  1. Animate transform, opacity, clip-path, filter (sparingly); never layout properties. Keep long tasks off the main thread.
  2. 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.
  3. Close the feedback loop: every action shows idle -> working -> success/failure -> reset with stable geometry (no layout jump); success states self-dismiss.
  4. Stagger with consistent delta (40-130 ms) and cap total sequence (<= 2.6 s); do not animate everything.
  5. 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.
  6. Loops must be seamless: drive noise/rotation from t = 2π·time/T on a circle in noise space; first and last frames equal.
  7. Provide non-gesture alternatives (buttons for swipe/drag), and a real <input> under any fancy slider/toggle.
  8. For video deliverables (HyperFrames, Remotion, AE): storyboard beats in seconds first; see ui-catalogue-brand-ads for 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

  1. Name the pattern (table above). Read its card + principles.
  2. strip 2-3 reference IDs; write a timeline table: t0..tn, property, from->to, easing.
  3. Implement with the tool listed in motion-implementation.md section 0 for that pattern; add reduced-motion branch.
  4. Record/inspect: compare filmstrip of your result with the reference filmstrip (same frame count) for pacing.