Agent skill

Motion Design

by mobazha in mobazha/mobazha-unified

Motion design system for Mobazha including animation principles, duration standards, easing functions, prefers-reduced-motion support, and scene-specific animation patterns.

MPL-2.0Auto-check passedFrontend & Design

Install Motion Design

skills CLI
$ npx skills add mobazha/mobazha-unified --skill motion-design -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mobazha/mobazha-unified motion-design --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/motion-design .claude/skills/motion-design && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
motion-design
GitHub stars
165
Token cost
~1.1k tokens
SKILL.md length
162 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
MPL-2.0

At a glance

Motion design system for Mobazha including animation principles, duration standards, easing functions, prefers-reduced-motion support, and scene-specific animation patterns.

  • Works in 3 steps: 目的性:每个动画必须有明确目的(引导注意力、反馈操作、建立空间关系) → 连贯性:相同类型的交互使用相同的动画模式 → 自然感:遵循物理直觉,进入减速、退出加速
  • Adding animations
  • SKILL.md covers 三大原则, 时长标准, 缓动函数 and prefers-reduced-motion 适配(必须), plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Motion Design is an agent skill from mobazha/mobazha-unified. Motion design system for Mobazha including animation principles, duration standards, easing functions, prefers-reduced-motion support, and scene-specific animation patterns. Use when adding animations, transitions, or micro-interactions, "动效", "动画", "过渡", "transition", "animate", "微交互".

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Motion graphics and Web animation and motion. It works with Motion. The repository describes itself as: Open-source commerce frontend for storefronts, marketplaces, checkout, and seller management. The licence is MPL-2.0.

When your agent uses it

  • Adding animations
  • Micro-interactions

Example prompts

  • “transition”
  • “animate”
  • “/motion-design”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. 目的性:每个动画必须有明确目的(引导注意力、反馈操作、建立空间关系)
  2. 连贯性:相同类型的交互使用相同的动画模式
  3. 自然感:遵循物理直觉,进入减速、退出加速

What it can do on your machine

Read from SKILL.md and the folder at commit 156c699. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript and css).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Motion Design loads about 1.1k tokens when it runs. Until then it costs about 75 tokens; SKILL.md has 162 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~75
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mobazha/mobazha-unified at commit 156c699, republished under its MPL-2.0 licence (© mobazha). 162 words, ~1,081 tokens.

Download SKILL.mdSave it as .claude/skills/motion-design/SKILL.md (or your agent's skills folder).
name
motion-design
description
Motion design system for Mobazha including animation principles, duration standards, easing functions, prefers-reduced-motion support, and scene-specific animation patterns. Use when adding animations, transitions, or micro-interactions, "动效", "动画", "过渡", "transition", "animate", "微交互".

动效设计系统

Mobazha 项目的动画和过渡效果统一规范。

三大原则

  1. 目的性:每个动画必须有明确目的(引导注意力、反馈操作、建立空间关系)
  2. 连贯性:相同类型的交互使用相同的动画模式
  3. 自然感:遵循物理直觉,进入减速、退出加速

时长标准

类别时长Tailwind使用场景
微交互100-150msduration-150按钮状态、复选框、开关
颜色/透明度变化200msduration-200hover 效果、焦点、active 状态
面板/展开200-300msduration-200/duration-300下拉菜单、手风琴、Tooltip
模态/抽屉300msduration-300Dialog、Sheet、Drawer
页面/大区域300-500msduration-300/duration-500页面过渡、Tab 切换内容

原则:越小的元素动画越快,越大的区域动画越慢。

缓动函数

场景缓动CSS / Tailwind
元素进入ease-out(减速进入)ease-out
元素退出ease-in(加速退出)ease-in
元素移动ease-in-outease-in-out
弹性效果cubic-beziercubic-bezier(0.34, 1.56, 0.64, 1)
项目默认Material easecubic-bezier(0.4, 0, 0.2, 1)

项目 CSS 变量:

css
--animation-easing: cubic-bezier(0.4, 0, 0.2, 1);

prefers-reduced-motion 适配(必须)

所有动画必须尊重用户的减少动效偏好:

tsx
// ✅ 正确:CSS 方式(推荐)
<div className="transition-all duration-200 motion-reduce:transition-none">

// ✅ 正确:装饰性动画在减少动效模式下隐藏
<div className="animate-fade-in motion-reduce:animate-none">

// ✅ 正确:全局 CSS 降级
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

例外:不需要降级的场景:

  • 加载指示器(spinner)— 功能性动画
  • 进度条 — 传达信息的动画

场景对照表

操作确认
tsx
// Toast 通知(已有,参见 use-toast)
toast({ title: '添加成功', variant: 'success' });

// 按钮状态变化
<Button disabled={isSubmitting}>
  {isSubmitting ? <Spinner className="w-4 h-4 mr-2 animate-spin" /> : null}
  {isSubmitting ? '处理中...' : '提交'}
</Button>;
导航过渡
tsx
// Tab 内容切换
<div className="animate-fade-in" key={activeTab}>
  {tabContent}
</div>

// 模态框出入(Radix Dialog 已内置)
// data-[state=open]:animate-in data-[state=closed]:animate-out
状态变化
tsx
// 收藏图标切换
<Heart
  className={cn(
    'transition-all duration-200',
    isFavorited ? 'fill-destructive text-destructive scale-110' : 'text-muted-foreground'
  )}
/>

// 开关/复选框
<Switch className="transition-colors duration-200" />
列表增删
tsx
// 目前使用 CSS 动画
<div className="animate-fade-in" key={item.id}>
  <ItemCard item={item} />
</div>

// 删除时的过渡
<div className={cn(
  'transition-all duration-200',
  isRemoving && 'opacity-0 -translate-x-4'
)}>

项目已有动画工具类

定义在 apps/web/src/app/globals.css:

工具类效果使用场景
animate-fade-in淡入页面内容加载完成
animate-slide-up从下方滑入底部面板、Toast
animate-slide-in-right从右方滑入侧边抽屉、详情面板
animate-scale-in缩放进入弹出菜单、Tooltip
touch-feedback按压缩放+透明度移动端按钮/卡片
touch-feedback-bg按压背景变色移动端列表项
hover-lift悬停提升+阴影桌面端卡片

framer-motion 决策指南

当前状态:项目未使用 framer-motion,完全依赖 CSS 动画 + Radix UI 内置动画。

何时考虑引入 framer-motion:

  • 需要列表增删动画(AnimatePresence)
  • 需要共享元素过渡(layout animation)
  • 需要手势驱动的动画(drag、spring)
  • 需要交错动画(stagger children)

何时不需要:

  • 简单的 hover/active 状态变化 → CSS transition
  • 模态框/Sheet 进出 → Radix UI 内置
  • 淡入/滑入效果 → 项目已有工具类
  • 骨架屏脉冲 → animate-pulse

建议:当前 CSS 动画能满足大部分需求。仅在需要上述复杂场景时按需引入 framer-motion,避免增加 bundle 体积。

快速检查清单

  • 动画是否有明确目的(反馈、引导、空间)?
  • 时长是否符合标准(微交互 150ms、面板 300ms)?
  • 是否添加了 motion-reduce: 降级?
  • 缓动函数是否正确(进入 ease-out、退出 ease-in)?
  • 是否使用了项目已有的工具类(而非重复定义)?
  • 装饰性动画是否可被 prefers-reduced-motion 禁用?

© mobazha, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/motion-design of mobazha/mobazha-unified.

Open the folder on GitHubat commit 156c699

Compare with similar skills

Motion Design next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Motion Design compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Motion Design this skillmobazha/mobazha-unified165—~1.1kAutomated safety check: PassMPL-2.0
Motion DesignLottieFiles/motion-design-skill2k1 repos~3.1kAutomated safety check: PassMIT
Lottie Animation Integrationfreshtechbro/claudedesignskills1k—~4.5kAutomated safety check: PassMIT
Animate Textpixel-point/animate-text1491 repos~1.6kAutomated safety check: PassNone
Motiscope RecreateKumarSashank/motiscope122—~2kAutomated safety check: PassMIT
RecreateKumarSashank/motiscope122—~1.8kAutomated safety check: NotesMIT

Similar skills

  • Motion Design

    LottieFiles/motion-design-skill

    Applies motion design principles to create emotionally-driven, technically sound animations and transitions.

    2k GitHub starsUsed in 1 repo~3.1k tokens
    Frontend & DesignAuto-check passed
  • Lottie Animation Integration

    freshtechbro/claudedesignskills

    Implements After Effects Lottie animations in web and React apps: picking JSON or dotLottie format, a rendering library, and a data source, with an optimizer script.

    1k GitHub stars~4.5k tokensUpdated 10 mo ago
    Frontend & DesignAuto-check passed
  • Animate Text

    pixel-point/animate-text

    Curated text animation catalog with exact JSON specs for headings, labels, counters, and text swaps.

    149 GitHub starsUsed in 1 repo~1.6k tokens
    Frontend & DesignAuto-check passed
  • Motiscope Recreate

    KumarSashank/motiscope

    Recreate an analyzed animation as working web code — GSAP (JavaScript), CSS/Web Animations, Framer Motion (React), or Lottie/SVG.

    122 GitHub stars~2k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check passed
  • Recreate

    KumarSashank/motiscope

    Recreate an analyzed animation as working web code — GSAP (JavaScript), CSS/Web Animations, Framer Motion (React), or Lottie/SVG.

    122 GitHub stars~1.8k tokensUpdated 2 mo ago
    Frontend & DesignAuto-check: notes
  • Animation Motion Design

    yonatangross/orchestkit

    Animation and motion design patterns using Motion library (formerly Framer Motion) and View Transitions API.

    290 GitHub stars~2k tokensUpdated today
    Frontend & DesignAuto-check passed

More from mobazha/mobazha-unified

All 29 skills in this repo
  • A11y Guide

    mobazha/mobazha-unified

    Accessibility guide for Mobazha following WCAG 2.1 AA standards including color contrast, reduced motion, ARIA patterns, keyboard navigation, focus management, and screen reader testing.

    165 GitHub stars~1.4k tokensUpdated 5 days ago
    Auto-check passed
  • API Reference

    mobazha/mobazha-unified

    Look up Mobazha backend API endpoints, request/response formats, and field mappings.

    165 GitHub stars~1.7k tokensUpdated 5 days ago
    Auto-check passed
  • Code Review

    mobazha/mobazha-unified

    Review code for quality, architecture consistency, and adherence to Mobazha project standards using confidence-based filtering.

    165 GitHub stars~464 tokensUpdated 5 days ago
    Auto-check passed
  • Code Simplifier

    mobazha/mobazha-unified

    Simplify and refine recently written code for clarity, consistency, and maintainability while preserving all functionality.

    165 GitHub stars~601 tokensUpdated 5 days ago
    Auto-check passed
  • Commit Helper

    mobazha/mobazha-unified

    Generate commit messages and run pre-commit validation following Mobazha conventions.

    165 GitHub stars~735 tokensUpdated 5 days ago
    Auto-check passed
  • Component Dev

    mobazha/mobazha-unified

    Create and modify UI components following Mobazha conventions including directory structure, spacing standards, accessibility, and testing.

    165 GitHub stars~638 tokensUpdated 5 days ago
    Auto-check passed

Works with

Questions about Motion Design

What does Motion Design do?

Motion design system for Mobazha including animation principles, duration standards, easing functions, prefers-reduced-motion support, and scene-specific animation patterns. Motion Design is an agent skill from mobazha/mobazha-unified. Motion design system for Mobazha including animation principles, duration standards, easing functions, prefers-reduced-motion support, and scene-specific animation patterns.

When should I use Motion Design?

Motion Design fits situations like: adding animations; micro-interactions.

How do I install Motion Design in Claude Code?

Run `npx skills add mobazha/mobazha-unified --skill motion-design -a claude-code`. Or copy the skill folder (.cursor/skills/motion-design in mobazha/mobazha-unified) into .claude/skills/motion-design in your project. Claude Code loads it when a task matches its description.

How do I install Motion Design in Codex?

Run `npx skills add mobazha/mobazha-unified --skill motion-design -a codex`. Or copy the skill folder (.cursor/skills/motion-design in mobazha/mobazha-unified) into .agents/skills/motion-design in your project. Codex loads it when a task matches its description.

Can I use Motion Design in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mobazha/mobazha-unified --skill motion-design -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/motion-design, .gemini/skills/motion-design, .github/skills/motion-design and .opencode/skills/motion-design in your project.

What does Motion Design need to run?

SKILL.md names no scripts, command-line tools or credentials: Motion Design is instructions for the agent only.

Does Motion Design access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Motion Design safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Motion Design use?

Motion Design is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Motion Design use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Motion Design?

Skills that share tags, products or a category with Motion Design: Motion Design (LottieFiles/motion-design-skill, 2k stars), Lottie Animation Integration (freshtechbro/claudedesignskills, 1k stars), Animate Text (pixel-point/animate-text, 149 stars) and Motiscope Recreate (KumarSashank/motiscope, 122 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Motion Design?

mobazha (a GitHub organization) maintains it in mobazha/mobazha-unified, which has 165 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 3, 2026.

Source: mobazha/mobazha-unified on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.