跳到正文
Skillpedia
界面(UI/UX)101k · #1241

ui-animation

它能做什么

这个工具可以帮你创建和优化用户界面动画。它能分析动画录屏,还原其中的运动效果,并生成相应的代码。

适用场景

  • ✓当你想为按钮或菜单添加动态效果时。
  • ✓当你想分析一个现有动画的运作方式,并将其还原时。
  • ✓当你想调整屏幕上过渡效果的速度和流畅度时。

技能链接

https://github.com/nexu-io/open-design/blob/main/skills/ui-animation/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 AI

“帮我做一个按钮动画,鼠标悬停在按钮上时,它能平滑地显示出来。”

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

工作原理

这个工具会分析屏幕上元素的运动方式,既可以通过观察录屏,也可以借助内置工具。它了解弹簧物理和动画曲线,从而生成让动画实现的代码。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

UI Animation

Open Design execution context

Use this as a functional helper on the user's current interface or accepted brief. Keep the host's task route, current stage, tool availability, and output contract. Planning describes the motion; implementation happens only in the host's authoring stage. Do not add an extra review, recording, rendering, or approval phase when the host disallows it. Reuse the project's existing stack and motion tokens. Companion skills are optional: use them only if installed; otherwise apply the relevant guidance here without inventing a tool invocation. Report measurements only when actually observed; mark visual estimates and checks that could not be performed explicitly.

  • IS: designing, implementing, reviewing, debugging UI motion (springs, gestures, drag, easing, CSS transitions, keyframes, Motion), sweeping an interface for the moments that would genuinely benefit from motion, measuring motion from a recording (extract frames, track, fit curves) to emit code plus a handoff spec, naming a described motion effect (reverse-lookup vocabulary), and gating sparse interface sound.
  • IS NOT: choosing overall visual direction, palettes, or typography (use ui-design Direction mode), auditing a whole page's UI quality (use ui-design Audit mode), or named text-effect specs (use the external animate-text skill where installed).

Reference files

File Read when
references/decision-framework.md Default: deciding whether/why to animate, picking easing character; also the Discovery sweep ("where should this animate")
references/spring-animations.md Spring physics, Motion useSpring, configuring spring params, Apple damping/response values, asymmetric open/close character, interruption mechanics
references/component-patterns.md Buttons, toasts, crossfades, list stagger and removal, hover, step forms, Motion layout morphs and auto height, 3D
references/clip-path-techniques.md clip-path for reveals, tabs, hold-to-delete, comparison sliders
references/gesture-drag.md Drag, swipe-to-dismiss, momentum, pointer capture, velocity handoff, momentum projection, rotary/knob drag, detents, carousel touch-action
references/scroll-animations.md Scroll-triggered reveals, scrubbed/scroll-driven animation (animation-timeline, useScroll), parallax, sticky scrollytelling, and when a scroll animation shouldn't exist
references/performance-deep-dive.md Jank, CSS vs JS, WAAPI, CSS variables trap, Framer Motion caveats
references/debugging-symptoms.md An animation feels off and the cause isn't named: symptom-indexed tables for sluggish, robotic, cheap, jumpy, and misfiring motion
references/svg-animation.md Animating vector art: line drawing (stroke-dashoffset), SVG transform-origin traps, path morphing, shakes, ambient life
references/review-format.md Reviewing animation code: ten standards (each with flag-on-sight triggers), Before/After/Why table, Block/Approve verdict
references/contextual-animations.md Contextual icon swaps, word-level stagger entrances, peripheral de-emphasis, fixed-offset exits
references/transition-recipes.md Installing a CSS transition: container morph, card resize, badge, dropdown and tooltip (with library origin variables), modal (with @starting-style entry), panel and drawer, page slide, icon swap, number pop-in, odometer roll, text swap, success, avatar hover, error shake
references/measurement-guide.md Reverse-engineer: what to measure, eye vs script, reading metrics.json, choosing an ROI
references/curve-fitting.md Reverse-engineer: reading fit_curves.py output, spring vs bezier, judging fit error, asymmetric open/close
references/code-output.md Reverse-engineer: emitting code for CSS, Motion/Framer Motion, SwiftUI, React Native, UIKit

…

常见问题

什么是“缓动”和“弹簧”?

“缓动”指的是动画加速和减速的方式,就像汽车刹车或起步时的速度变化。“弹簧”则是模拟弹簧的运动特性,让动画看起来更真实、更有活力。

这个工具能用于所有类型的动画吗?

它主要专注于用户界面(UI)动画,比如页面切换、按钮移动和手势效果。它并不适用于电影中那种复杂的视觉特效。

这个工具会自动生成代码吗?

会的。它可以生成实现动画所需的代码,无论是 CSS,还是网页和移动开发中使用的其他编程语言。

详情

作者的原始描述

Implement, review, and measure UI motion. Reconstruct easing, springs and gestures from a recording using bundled frame extraction, tracking and curve-fitting tools when available.

repo: nexu-io/open-design

热度

GitHub 星标
101k
排名
#1241
许可证
Apache-2.0
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能