Agent skill

UI Animation Skill: Easing, Springs and Motion Review

The ui-animation skill gives an AI coding agent easing tables, spring and gesture guidance, a review format and a method for fitting curves to screen recordings of existing motion.

Install
git clone https://github.com/mblode/agent-skills.git
View on GitHub

Stars, license and last push from GitHub. Install count as reported by the open skills directory.

What is the ui-animation skill?

The ui-animation skill is a folder in mblode's agent-skills repository that teaches an AI coding agent to design, review and measure interface motion. It covers easing and duration defaults, springs, gestures, scroll effects, a review format with a Block or Approve verdict, and fitting curves to screen recordings.

The ui-animation skill lives at skills/ui-animation in the mblode/agent-skills repository, next to skills for UI design, typography audits and PR review. Its SKILL.md covers designing, implementing, reviewing and debugging motion, plus measuring motion from a recording to emit code.

It states its own boundary. Overall visual direction, palettes and typography belong to the separate ui-design skill, and whole-page audits do too. Named text-effect specs go to an external animate-text skill where one is installed.

Default durations and curves

The SKILL.md carries a table of easing defaults by element. Routine UI stays under 300 ms, and duration scales with distance, so a full-screen slide may run longer while a 6px tooltip shift stays under 150 ms.

ElementDurationEasing
Button press feedback100 to 160 mscubic-bezier(0.22, 1, 0.36, 1)
Tooltips, small popovers125 to 200 msease-out or the enter curve
Dropdowns, selects150 to 250 mscubic-bezier(0.22, 1, 0.36, 1)
Modals, drawers200 to 350 mscubic-bezier(0.22, 1, 0.36, 1)
Page transitions250 to 400 msenter or move curve
Illustrative or marketingUp to 1000 msSpring or custom

It also warns against ease-in for UI, because the element lags the user's action and feels sluggish, and prefers custom curves over the built-in ease keywords, whose gentle acceleration reads soft instead of decisive.

Core rules the agent follows

  • Animate for feedback, orientation, continuity or deliberate delight. If it only looks cool and the user sees it often, skip it.
  • Prefer CSS transitions for interruptible UI, because keyframes restart from zero on interruption while transitions retarget.
  • Animate transform and opacity for movement. Never animate width, height, top or left, and never write transition: all.
  • Give paired elements, such as a modal and its overlay, the same easing and duration.
  • Gate hover motion behind a hover and fine-pointer media query so touch devices do not replay it on tap.
  • Keep keyboard focus and repeated navigation immediate.

Measuring motion from a recording

The reverse-engineering path extracts frames from a recording, tracks the moving element and fits curves, then emits code. The reference files cover reading metrics.json, choosing a region of interest, and judging spring against bezier and fit error.

Output targets named in the code-output reference are CSS, Motion or Framer Motion, SwiftUI, React Native and UIKit. A choreography reference handles staggers, blur-before-move and per-edge settling for multi-element motion.

Who the ui-animation skill is for

Best for

  • Front-end teams who want motion decisions tied to feedback and orientation instead of decoration.
  • Reviewing animation code, where the review reference gives ten standards and a Before, After and Why table ending in a Block or Approve verdict. See also review-animations.
  • Matching an effect you saw on another product, by recording it and fitting curves to the frames.
  • Sweeping an interface for moments that would genuinely benefit from motion, as covered in find-animation-opportunities.

Not for

  • Choosing a visual direction, palette or typography. The skill hands those to ui-design.
  • Named text-effect specs, which it sends to an external animate-text skill.
  • Teams who want a deep guide to one animation library. For GSAP, see gsap-core.

Use it with UiChemy

The skill emits CSS, Motion and native code, and it does not build WordPress pages. A workable route is to take its CSS transition recipes and apply them to sections you build elsewhere.

UiChemy Composer writes real HTML, CSS and JS inside Elementor or Gutenberg, so a transition can live in that code. Check the result with fixing-motion-performance. Click Get Started on uichemy.com.