‹ 首页

animate

@clawic · 收录于 昨天 · 上游提交 2 天前

Animate app and web UIs across Flutter, React, SwiftUI, Compose, and React Native with motion systems, guardrails, and reduced-motion fallbacks.

适合你,如果需要在不同平台上为应用界面添加精美动画

/ 通过 npx 安装 校验哈希
npx oh-my-skill add clawic/skills/animate
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- clawic/skills/animate
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify clawic/skills/animate
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
14GitHub stars
~1.3K最小装载
~4.1K含声明引用
~4.2K文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 f825206 · 表述以原文为准
它做什么

当你说出与动效相关的需求时,Claude 会帮你制定动效方案、选择技术实现,并给出可测试的验收标准,支持 Flutter、React、SwiftUI、Compose 和 React Native 等框架。

什么时候触发

当你需要为产品 UI 设计或实现微交互、导航过渡、共享元素动画、加载状态、手势反馈或动效系统时。

装好后可以这样说
Claude 会生成对应的动效合同和代码片段。
Claude 会匹配平台最佳抽象并给出示例。
Claude 会确保动效符合可访问性要求。
技能原文 SKILL.md作者撰写 · MIT · f825206
When to Use

User needs motion designed or implemented inside a product UI. Agent turns vague requests into motion contracts, stack-specific implementation choices, and testable acceptance criteria across Flutter, React, Next.js, SwiftUI, Compose, React Native, and broader web stacks.

Use this for micro-interactions, navigation transitions, shared-element flows, loading states, gesture feedback, and motion system design. Do not use it for video editing, GIF rendering, or media encoding.

Architecture

Memory lives in ~/Clawic/data/animate/. If ~/Clawic/data/animate/ does not exist, run setup.md. See memory-template.md for structure and status fields.

~/Clawic/data/animate/
|- memory.md             # Durable motion preferences and platform context
|- tokens.md             # Approved duration, easing, and spring ladders
|- patterns.md           # Proven interaction and transition patterns
|- platform-notes.md     # Stack-specific implementation decisions
`- qa.md                 # Regressions, low-end findings, and accessibility notes
Quick Reference

Use the smallest relevant file for the current task.

| Topic | File | |-------|------| | Setup flow | setup.md | | Memory template | memory-template.md | | Motion system and spec contract | motion-system.md | | Platform routing by stack | platform-routing.md | | Starter snippets by stack | implementation-snippets.md | | Common app animation patterns | pattern-catalog.md | | Performance and accessibility guardrails | performance-accessibility.md | | QA and regression checks | qa-playbook.md |

Core Rules
1. Start from Product Intent and State Change
  • Define the trigger, user goal, and state transition before choosing an effect.
  • Map motion to one of five jobs: orientation, feedback, continuity, emphasis, or delight.
  • If the intent is unclear, do not animate yet.
2. Write a Motion Contract Before Code

Every proposal must specify:

  • Trigger and affected surfaces
  • Initial state, end state, and reduced-motion fallback
  • Duration, easing or spring, delay or stagger, and cancellation behavior
  • Acceptance criteria: responsiveness, accessibility, parity, and performance

No vague wording like "smooth" or "premium" without values.

3. Route to the Safest Native Abstraction

Use the highest-level API that solves the job:

  • Flutter: implicit animation widgets, AnimatedSwitcher, TweenAnimationBuilder, Hero
  • React and Next.js: CSS-first transitions, Motion presence/layout APIs, and router-safe transitions before bespoke choreography
  • SwiftUI: withAnimation, content transitions, matchedGeometryEffect
  • Compose: animate*AsState, AnimatedVisibility, updateTransition
  • React Native: native-thread or worklet-safe animation paths before JS-thread choreography
  • Web: CSS transform and opacity, View Transitions, or framework-native transitions before GSAP-level complexity

Avoid low-level animation code when a higher-level primitive already handles interruption and lifecycle.

4. Optimize for Compositor-Safe Motion and Interruption
  • Prefer transform, opacity, color, and scale patterns that keep layout stable.
  • Avoid width, height, top, left, and layout-driven loops unless the stack provides a dedicated layout animation primitive.
  • Define behavior for rapid taps, back gestures, dismiss, re-render, offscreen, and navigation cancel.
  • Users should never get stuck behind an animation.
5. Ship Accessible Variants by Default
  • Respect reduced-motion and system animation-scale settings.
  • Replace large travel, parallax, bounce, blur-heavy flourishes, and infinite loops with calmer equivalents.
  • Never rely on movement alone to communicate status.
  • Keep focus order, screen reader output, and hit targets stable during motion.
6. Cover Real Product States, Not Only the Happy Path
  • Animate loading, success, error, empty, disabled, retry, and optimistic-update states when relevant.
  • Coordinate navigation, overlays, lists, forms, and async data so motion still works with latency and content changes.
  • Deliver a sober V1 first, then a more expressive V2 only when constraints allow.
7. Verify with Previews, Tests, and Device Reality
  • Leave deterministic previews, stories, or demo toggles for the motion states you touched.
  • Add or update behavior, E2E, or visual tests when the app stack supports them.
  • Validate reduced motion, mid-tier performance, and interrupted flows before calling it done.
Common Traps
  • Pretty animation without a user-facing reason -> extra motion, less clarity.
  • Hardcoded timings per screen -> inconsistent product feel and painful iteration.
  • JS or main-thread choreography for critical mobile motion -> dropped frames under load.
  • Animating only happy-path states -> broken UX on loading, error, or rapid retries.
  • Missing cancellation rules -> stuck overlays, ghost states, or navigation glitches.
  • Shipping only one variant -> accessibility regressions and poor low-end performance.
Security & Privacy

Data that leaves your machine:

  • None by default from this skill itself.

Data that stays local:

  • Motion preferences, approved tokens, platform notes, and QA learnings under ~/Clawic/data/animate/.

This skill does NOT:

  • Upload builds, videos, or telemetry automatically.
  • Modify files outside ~/Clawic/data/animate/ for memory.
  • Disable accessibility settings.
  • Modify its own SKILL.md.
Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

  • flutter - Widget lifecycles and performance rules useful for Flutter motion.
  • react - Component and rendering patterns that shape animation behavior in React apps.
  • react-native - Mobile lifecycle and animation-thread constraints for React Native.
  • swift - Swift and SwiftUI implementation patterns for Apple platforms.
  • android - Android and Compose implementation details for native motion.
Feedback
  • If useful, star it: https://clawic.com/skills/animate
  • Latest version: https://clawic.com/skills/animate
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。