跳到正文
Skillpedia
界面(UI/UX)48k · #6039

ui-motion

它能做什么

这个工具可以为网站或应用中的视觉元素添加动画。你可以选择 spring 或 silk 这类预设风格,也可以使用 flip 或 blur 等具体的动效。

适用场景

  • ✓当你希望按钮在点击时显得更有“弹性”时。
  • ✓当你想让菜单平滑优雅地弹出时。
  • ✓当你希望通知能快速“弹”出来时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-motion/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/ui-motion/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“让“购买”按钮在点击时看起来会跳起来。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会选择一种动画风格(比如用于弹跳效果的 spring,或用于平滑效果的 silk),或者选择一种具体动效(比如用于切换效果的 flip)。然后,它会把这个动画应用到你指定的元素上。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Motion Seed Applier

When to Use

Use this skill when you need apply a named StyleSeed motion to a component — either one of the 5 personality seeds (Spring/Silk/Snap/Float/Pulse × entrance/exit/hover/press/layout) or a distinctive keyword move from the motion library (toggle-flip, toggle-curtain, reveal-blur, pop-in, shimmer, …). Translates vibe...

When NOT to use

  • For general framer-motion docs or learning → use the framer-motion site
  • For non-React motion (CSS-only transitions, GSAP) — this skill targets motion.X JSX only
  • For full scroll-linked timelines or parallax — out of scope per DESIGN-LANGUAGE.md Rule 59
  • For tweaking the existing FadeIn/FadeUp/Stagger wrappers — edit engine/components/ui/motion.tsx directly

Vibe → Seed mapping

Translate the user's prompt to one of the five seeds before applying. Use this lookup table from engine/motion/index.ts:

Words the user might say Seed
bouncy, springy, playful, energetic, alive Spring
smooth, silky, fluid, elegant, composed, continuous Silk
snappy, quick, instant, decisive, sharp, precise Snap
floaty, gentle, weightless, dreamy, ambient, drifting Float
rhythmic, punchy, pulsing, heartbeat, beat Pulse
"Toss style", "Arc style" Spring (per brand default)
"Stripe style", "Notion style" Silk
"Linear style", "Raycast style", "Vercel style" Snap

If the user says only a brand name, use that brand's default seed from BRAND_DEFAULT_SEED. If the user is explicit about a seed name (spring, silk, etc.), respect it verbatim.

Recommend mode — use-case → motion (when the user describes the moment, not the vibe)

If the user describes what the thing is ("a like button", "a modal", "the loading state", "items in a feed") rather than a feeling, recommend from the use-case map (MOTION_BY_USECASE in engine/motion/library.ts, exported from @engine/motion):

Use case Reach for Why
Primary button / CTA press spring · press tactile, confident — the press should "give"
Modal / dialog / sheet enter silk · entrance smooth; never bounce serious/destructive content
Dropdown / popover / menu snap · entrance instant, precise — frequent UI shouldn't wait
Toast / inline notification spring · entrance small friendly arrival, non-blocking
List / feed items appearing stagger-cascade choreograph order, gently
Feature / marketing card hover tilt-3d depth/flair OK on content-light marketing
Dashboard / data card hover snap · hover a subtle lift only — keep dense UI calm
Like / favorite / reaction like-burst a celebratory one-shot; reward the tap
Live / online / recording dot pulse-beat looping heartbeat = "alive"
Loading / skeleton shimmer calm directional progress
Success / confirmation pop-in positive little "done"
Toggle / tab / segment switch toggle-flip distinctive, recognizable switch
Page / route transition silk · entrance smooth, minimal, get out of the way
Number / balance / KPI / price reveal none don't animate the payload — it must read instantly

Two anti-rules override the table (state them if you deviate):

  1. One seed per product. If the project already uses a seed, match it — don't introduce a second personality.
  2. Never delay the payload. Don't animate a balance, price, or search result into view; motion is for affordance, not content.

Named motion keywords (distinctive moves)

Seeds set a personality (how a fade/scale feels). The motion library in engine/motion/library.ts adds distinctive moves — a flip, a curtain wipe, a morph — each behind a unique keyword. Prefer a keyword when the user wants a specific, recognizable motion rather than a generic feel.

engine/motion/library.ts (exported as MOTION_LIBRARY / MOTION_BY_KEY from @engine/motion) is the single source of truth — every keyword carries its own runnable snippet. Pull the snippet from there; never hand-write the params.

Keyword Move Say it when the user wants…
toggle-flip 3D Y-axis card flip a switch/toggle to flip between two faces
toggle-slide slide-stack swap a value to slide out and the next to slide in
toggle-morph pill ⇄ circle morph a control to change shape on toggle

…

常见问题

什么是 StyleSeeds?

它们是带有不同“个性”的动画风格,比如充满活力的 Spring,或者顺滑的 Silk。

我可以把它用于任何动画吗?

不可以。这个工具专门用于 React 代码中的动画,不适用于纯 CSS 动画或其他语言。

如果我要求一个不存在的动画怎么办?

工具会尝试找到最接近的动画,或者推荐一个替代方案。

详情

作者的原始描述

Apply a named StyleSeed motion to a component — either one of the 5 personality seeds (Spring/Silk/Snap/Float/Pulse × entrance/exit/hover/press/layout) or a distinctive keyword move from the motion library (toggle-flip, toggle-curtain, reveal-blur, pop-in, shimmer, …).

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#6039
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能