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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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.XJSX 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.tsxdirectly
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):
- One seed per product. If the project already uses a seed, match it — don't introduce a second personality.
- 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, …).
热度
- GitHub 星标
- 48k
- 排名
- #6039
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。