Animate

educlopez/ui-craft/cli/assets/gemini/skills/animate

作者 educlopezceecc8e1fb0c2befda73da996435900d6dd0c1ac無授權條款375 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫5 週前更新

Motion design pass — adds purposeful animations or removes excessive ones, respecting MOTION_INTENSITY and the project's animation stack. Use when the user asks to add animation, "make it feel smoother", fix janky transitions, or trim motion that's distracting. Invoke when the user asks for animate on their UI, or mentions 'animate' alongside design / UI / frontend work.

僅含說明Design & Creative
AI 產生的概覽

依照動效預算與強度設定,為介面加入、調整或移除動畫。

功能
此技能會對使用者介面程式碼執行一次動效設計處理:判斷哪些動畫應保留或移除、選擇動畫函式庫或退回使用 CSS,並依元素尺寸套用時長預算。它會直接編輯程式碼,並在每個檔案後印出審查表格,標註被移除的動畫及原因。它也會處理多階段序列,並遵循 MOTION_INTENSITY 設定與減少動效偏好。
適用情境
當使用者要求為介面加入動畫、讓互動更順暢、修正卡頓的轉場效果,或削減令人分心的動效時使用。它適用於以動畫為重點的設計、介面或前端工作。
執行需求
需要 ui-craft 技能及其參考檔案(references/motion.md、references/stack.md、examples/animation-storyboard.md)。未包含指令碼,透過直接編輯程式碼運作。只有在使用者選擇時才使用 Motion、GSAP 或 Three.js 等選用動畫技術堆疊。
<!-- HARNESS MIRROR — do not edit here. Canonical source: skills/ or commands/. After editing source, copy into cli/assets/<harness>/ and repo-root harness mirrors. -->

Context: this sub-skill is one lens of the broader ui-craft skill. If the ui-craft skill is also installed, read its SKILL.md first for Discovery + Anti-Slop + Craft Test, then apply the specific lens below.

Add or fix animations in $ARGUMENTS. Load the ui-craft skill.

Step 1 — Decision Ladder: run the Decision Ladder from references/motion.md first. Anything that fails it gets removed, not improved.

Step 2 — Pick the library:

  • If user opted into a stack during Discovery → read references/stack.md. Use the matching section (Motion, GSAP, or Three.js). Never mix libraries on the same property.
  • Otherwise → CSS transitions / @keyframes / animation-timeline: view() only.

Step 3 — Apply motion budget:

ElementBudget
Color/opacity100-150ms
Small UI (tooltips, dropdowns)150-200ms
Medium UI (modals, panels)200-300ms
Large UI (page transitions, drawers)300-400ms

Exit ≈ 75% of entrance duration (shorter, same ease-out — or a flatter tail like cubic-bezier(0.4, 0, 1, 1) for a softer exit). Never ease-in on UI (see references/motion.md). cubic-bezier(0.22, 1, 0.36, 1) is a safe spring-like default.

Step 4 — Multi-stage sequences → read ../examples/animation-storyboard.md. Stagger 30-80ms, not 200ms.

Step 5 — Respect the knobs:

  • MOTION_INTENSITY ≤ 3 → hover states only, no entrances, no scroll-triggered.
  • MOTION_INTENSITY 4-7 → standard entrances + hover, one scroll reveal max per section.
  • MOTION_INTENSITY 8+ → scroll-linked, page transitions, magnetic cursor OK (still honor reduced-motion).

Output: edit code directly. After each file, print the Review Format table. Flag any animation you removed and why.

Next step: /polish — the compound details around the motion you just added (rung 1).

來源與署名

來源:educlopez/ui-craft位於cli/assets/gemini/skills/animate提交ceecc8e

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架