TraeSkill: Skill for Claude Code

.trae/Skills/02_Designer_Motion/SKILL.md

designer-motion is a skill for Claude Code from boshi-xixixi/TraeSkill. It costs 126 tokens per session (1,718 once invoked), scanned A, original, MIT.

A guide to designing and implementing motion in user interfaces, including transitions, feedback, page changes, and gesture-driven effects. It covers CSS, browser animation tools, and common animation libraries, plus reduced-motion preferences for users who need less animation.

In plain words
What is it for?
Use it to decide whether an element should move, choose timing and easing, review awkward transitions or dropped frames, and add accessible interface animation.
Why use it?
It helps animations explain state changes and interactions without causing confusing movement, slow interfaces, or poor performance.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

This is boshi-xixixi/TraeSkill's own configuration. It tells Claude Code how to work on TraeSkill itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything TraeSkill configures →

Reuse

Borrowing it

Nothing to install: this file belongs to boshi-xixixi/TraeSkill. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/boshi-xixixi/TraeSkill/main/.trae/Skills/02_Designer_Motion/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/boshi-xixixi/TraeSkill

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for designer-motion

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_designer_motion/github.svg)](https://agentmods.dev/skills/boshi-xixixi/traeskill/02_designer_motion)
Your own site
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/02_designer_motion"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_designer_motion/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for designer-motion

Your own site · 80×15
<a href="https://agentmods.dev/skills/boshi-xixixi/traeskill/02_designer_motion"><img src="https://agentmods.dev/badge/skills/boshi-xixixi/traeskill/02_designer_motion.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 126 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,718 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00126 $0.01718
Opus 5.5 $0.00050 $0.00687
Sonnet 5.5 $0.00025 $0.00344
Haiku 4.5 $0.00013 $0.00172

Measured 8d ago against content hash 48814b8359b4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

designer-motion scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.trae/Skills/02_Designer_Motion/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

动效设计与实现

动效不是装饰,是解释界面发生了什么。每加一个动画,先能回答"它在帮用户理解什么",答不上来就不要加。

一、决策顺序

按这个顺序做决定,顺序错了后面怎么调都别扭:

  1. 该不该动 —— 高频操作、键盘触发、数据刷新不要动
  2. 动给谁看 —— 告知状态变化 / 引导注意力 / 表达空间关系 / 提供操作反馈
  3. 用哪个工具 —— CSS / WAAPI / GSAP / Framer Motion
  4. 动哪些属性 —— 只动 transform 和 opacity
  5. 多快、什么曲线 —— 见下方档位表
  6. 怎么被打断、怎么退出 —— 退出比进入快,且要能被中途接管

二、属性:只动合成层

属性 是否推荐 原因
transform、opacity ✅ 首选 只走合成,不触发布局与重绘
filter、clip-path ⚠️ 谨慎 开销较高,长列表里慎用
width/height/top/left/margin ❌ 避免 每帧触发布局,必掉帧
box-shadow ⚠️ 谨慎 用伪元素 + opacity 代替
background-color ✅ 可用 只重绘,短时过渡可接受

will-change 只在动画开始前加、结束后移除,长期挂着会白白吃显存。

三、曲线与时长

曲线

  • 进场(元素出现):ease-out,起步快、收尾稳
  • 退场(元素消失):ease-in,起步慢、加速离开
  • 位移和变形:不要用 linear,会显得机械
  • 跟手/物理感:用弹簧,不要硬编码曲线
  • 可用于接近 iOS 手感的缓动:cubic-bezier(0.32, 0.72, 0, 1)

时长档位

场景 时长
hover / 按压反馈 100–150ms
小元素出现(图标、徽标) 150–250ms
弹层、下拉、抽屉 200–300ms
页面级转场 300–500ms
叙事型滚动动画 可更长,但必须可跳过

超过 400ms 的过渡,用户会开始觉得"卡"而不是"顺"。

四、编排

  • 一组元素入场:每个元素间隔 30–80ms,且延迟不要完全等距,等距会显得机械
  • 一个容器只做一次入场,不要让每个子块各自 fade-in
  • 明显的主次:主元素先动,辅助元素跟随或不动
  • 同时动的元素超过 3 个,要考虑减少

五、工具选择

需求 选择
简单的状态过渡(hover、展开、淡入) CSS transition
需要循环或关键帧 CSS @keyframes
需要 JS 控制播放/暂停/进度 Web Animations API element.animate()
复杂时间线、滚动绑定、SVG 变形 GSAP + ScrollTrigger
React 内的进出场、布局动画、手势 Framer Motion / Motion
跟手拖拽、弹簧物理 优先用库(如 Vaul、Motion),不要手搓

原则:CSS 能做的不要上库,库能解决的不手搓。

六、可访问性与性能

必须处理 reduced motion

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

GSAP 场景用 gsap.matchMedia() 包一层:

const mm = gsap.matchMedia();
mm.add('(prefers-reduced-motion: no-preference)', () => {
  // 动画代码
});

性能自查

  • 用 DevTools Performance 录制,确认动画期间没有 Layout / Recalculate Style
  • 掉帧时先看是不是动了非合成属性,其次看主线程是否被 JS 长任务占住
  • 滚动联动动画优先用 CSS animation-timeline: scroll() 或 IntersectionObserver,不要在 scroll 事件里同步改样式

Read the full file on GitHub · 142 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 142 lines · 126 tokens per session scan A 48814b8359b4

Subscribe to this mod's changes

designer-motion is a skill published in the GitHub repository boshi-xixixi/TraeSkill (288 stars, last pushed 9d ago), licensed MIT. It adds 126 tokens to every session and 1,718 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-22.

Related

designer-motion compared with skills from other repositories

designer-motion next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
designer-motionboshi-xixixi/TraeSkillSkill2889d agoMITA126Claude Code
designRune-kit/runeSkill962d agoMITA67Claude Code
frontend-craftsentimony/skillsSkill8todayMITA99Claude Code
frontend-architectSarthib7/agentsmithSkill111mo agononeA81Claude Code, Codex
frontend-design-guidelinesSarthib7/agentsmithSkill111mo agononeB198Claude Code, Codex
design-taste-frontendxiehuan123/coding-coachSkill63mo agononeA79Claude Code
ui-ux-pro-maxxiehuan123/coding-coachSkill63mo agononeB238Claude Code