跳到正文
cccskills
免费在 GitHub 公开

animation-systems

Design and implement web animations that guide attention, explain hierarchy, and confirm actions. Define reusable timing and movement rules, plan coordinated sequences, and account for performance and accessibility settings that reduce motion.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Use when designing or implementing product-grade web motion like Stripe, Linear, Apple, and Vercel. Covers motion principles, easing/duration defaults, choreography patterns, scroll/hover interactions, performance, accessibility (reduced motion), and implementation guidance.

集成工具StripeVercel
查看安装方法

适用场景

  • Plan entrance animations for a product page
  • Standardize timing and easing across a UI
  • Add hover feedback and navigation transitions
  • Adapt animations for reduced-motion preferences

包含的文件(4)

  • SKILL.md5.1 KB
  • demo/index.html16.1 KB
  • demo/preview.jpg63.8 KB
  • demo/PROMPT.md1.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Animation Systems (Stripe × Linear × Apple × Vercel)

This skill helps you ship tasteful, product-grade motion. Not “more animation.” Better animation: clarity, hierarchy, feedback, and delight—without jank.


The goals (why motion exists)

Use animation to:

  1. Explain hierarchy (what matters)
  2. Confirm action (feedback)
  3. Guide attention (where to look next)
  4. Maintain continuity (spatial relationships)
  5. Add polish (craft signals)

If an animation doesn’t serve one of these, delete it.


The Stripe/Linear/Apple/Vercel style (shared traits)

1) Restraint

  • Fewer animations, better chosen.
  • One strong hero moment; the rest is supporting motion.

2) Clear choreography

  • Primary element moves first.
  • Secondary elements follow with small stagger.
  • Motion establishes a “reading order.”

3) Physical but not cartoony

  • Use easing that feels human (soft acceleration + gentle settle).
  • Avoid bouncy defaults for serious product UI.

4) Texture + depth (subtle)

  • Small parallax, soft shadows, blur fades, light beams.
  • Avoid heavy 3D unless it’s the hero.

Motion primitives (build these first)

Think in primitives you can reuse everywhere.

A) Fade + rise (default entrance)

Use for: text blocks, cards, modals.

  • Opacity: 0 → 1
  • Y: 12–24px → 0
  • Duration: 300–700ms depending on size

B) Scale + fade (micro emphasis)

Use for: popovers, toasts, selected states.

  • Scale: 0.98 → 1
  • Opacity: 0 → 1

C) Slide (navigation)

Use for: drawers, step transitions.

  • Use transform translate; avoid animating layout.

D) Morph / shared element (high craft)

Use for: tab indicators, expanding cards.

  • Requires consistent geometry + measured layout.

Defaults (practical numbers)

Use these as a starting system.

Durations (rule of thumb)

  • Micro (hover/press): 120–200ms
  • UI state change (toggle, select): 180–260ms
  • Small transitions (popover, toast): 220–320ms
  • Page section entrance: 400–800ms
  • Hero sequences: 800–1600ms (with internal beats)

Easing (safe set)

Pick a small set and reuse.

  • UI: ease-out with gentle settle
  • Emphasis: slightly stronger ease
  • Entering: ease-out
  • Exiting: ease-in (faster)

If implementing:

  • Use your animation library’s “power2.out / expo.out” equivalents.
  • Avoid elastic/bounce unless brand is playful.

Stagger

  • 40–90ms per element (text lines/cards)
  • Use smaller stagger on mobile

Choreography patterns

1) “Hero → supporting elements”

  • Hero visual animates in first.
  • Headline appears next.
  • CTA appears last.

2) “Section reveal on scroll”

  • Trigger when section is ~20–30% visible.
  • Animate once (don’t replay on tiny scroll).

3) “Hover: lift + glow”

  • Y: -2 to -6px
  • Shadow: subtle increase
  • Optional: border/gradient glow

4) “Focus ring + micro shift”

  • For form fields: focus ring + tiny scale/translate for responsiveness.

Performance rules (non‑negotiable)

Animate the right properties

Prefer:

  • transform (translate/scale/rotate)
  • opacity

Avoid (unless necessary):

  • width/height/top/left
  • expensive filters on large areas

Respect the GPU

  • Clamp device pixel ratio in heavy canvases (1–2)
  • Keep blur subtle and small
  • Avoid many simultaneous animated shadows

Reduce reflows

  • Don’t measure layout every frame.
  • For scroll effects, use a library that batches reads/writes.

Accessibility: Reduced Motion

Always support prefers-reduced-motion.

Policy:

  • Keep content visible.
  • Replace motion with instant state + subtle opacity.
  • Disable scroll-scrub/pin.

Ask the user:

  • “Do you want a reduced-motion mode that disables all non-essential motion?”

Implementation guidance (library-agnostic)

For simple sites

  • CSS transitions for small hovers/toggles.
  • Use a single motion library (GSAP or Framer Motion) for complex sequences.

For product sites

  • Create a motion token set:
    • durations
    • easing curves
    • standard offsets (8/16/24px)
    • stagger defaults

For hero moments

  • Use timelines (or keyframes) with labeled beats.
  • Lock camera/scene movement first, then layer text.

What to ask the user

  • What’s the brand lane: Stripe (polished), Linear (minimal), Apple (cinematic), Vercel (developer/product)?
  • What are the key moments? (hero, scroll story, hover cards, nav transitions)
  • Any performance constraints? (mobile, low-end devices)
  • Reduced motion requirements?

Output format (when asked to “add Stripe/Linear-style animation”)

Return:

  1. Motion goals (what we’re trying to communicate)
  2. Motion tokens (durations + easing + offsets)
  3. A choreography plan (timeline beats)
  4. Implementation notes (perf + reduced motion)
  5. A small code recipe (CSS or GSAP/Framer depending on stack)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Build woven fabric in Three.js with visible threads, realistic sheen, seams, and thick hems. The skill covers folds that preserve texture proportions, light passing through thin cloth, and variations in dye and wear.

中文简介正在准备中。当前显示英语简介。

  • Creating backlit curtains
  • Differentiating linen, silk, and wool
  • Adding hems and stitches for close-up views
MengTo/Skills68662026年10月18日 更新

Build falling leaves in Three.js and similar 3D scenes, with visible front, edge, and back views as they tumble and drift. Coordinate wind, scene depth, camera-aware recycling, and performance checks for a convincing autumn effect.

中文简介正在准备中。当前显示英语简介。

  • Adding falling autumn leaves to a 3D scene
  • Coordinating leaf tumble, sideways drift, and wind
  • Managing leaves around buildings and camera movement
MengTo/Skills68662026年10月18日 更新

Add coordinated seasonal transitions to an existing 3D scene. Blend foliage, lighting, sky, ground, snow, and particles from one shared state while preserving camera controls and interactions, so the same place remains recognizable throughout spring, summer, fall, and winter.

中文简介正在准备中。当前显示英语简介。

  • Add a four-season selector to an outdoor 3D scene
  • Show seasonal changes in an architectural walkthrough
  • Coordinate foliage, sunlight, sky, and ground appearance
MengTo/Skills68662026年10月18日 更新

Create or integrate detailed 3D models with smooth outlines and believable edges for close-up views. Prepare lower-detail versions for distant viewing, prioritize loading, and measure rendering costs in the actual scene.

中文简介正在准备中。当前显示英语简介。

  • Creating a detailed 3D model for close-up views
  • Replacing visibly faceted curves with smoother geometry
  • Preparing detailed architectural assets for rendering
MengTo/Skills68662026年10月18日 更新

Prepare detailed 3D materials that remain clear in close-up views. The skill guides texture resolution, physically based material maps, surface mapping, filtering, and progressive loading while checking download size and GPU memory use.

中文简介正在准备中。当前显示英语简介。

  • Prepare wood, stone, and fabric materials for close-up views
  • Fix texture seams, grain direction, and normal map orientation
  • Preserve floor and foliage detail at oblique or distant views
MengTo/Skills68662026年10月18日 更新

Create realistic metal surfaces in Three.js by combining structured reflections, studio lighting, scratches, fingerprints, and beveled edges. Includes polished, brushed, and aged finishes for objects such as tools, rings, and metal product parts.

中文简介正在准备中。当前显示英语简介。

  • Fixing metal that looks like gray plastic
  • Creating polished or brushed metal finishes
  • Adding patina and worn edges
MengTo/Skills68662026年10月18日 更新

查看 MengTo 的全部技能

报告此技能的问题