/officialunofficial-skills:animatefrom Official Unofficial Skills
Builds web animations from scratch with a structured decision process: whether to animate, purpose, tool, properties, easing, and reduced motion. Use when asked to animate, add motion, or build transitions.
Ships in Official Unofficial Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Turn a request for motion into code that passes review-animations on the first try. Make each decision yourself, give the reason in one line, and write the code. Offer one answer, not a menu.
Two things go wrong. The worse one is animating something that should stay still, so step 1 sometimes ends the task with zero lines of animation, and that is a good result. The other is the right animation built from the wrong parts: ease-in on an entrance, scale(0), keyframes on a toast, a dropdown that takes 400ms.
Ground rules:
Out of scope: auditing a codebase (improve-animations), critiquing a diff (review-animations), finding places to animate (find-animation-opportunities), React Native (animate-expo).
| How often the user sees it | Decision |
|---|---|
| 100+ times a day (keyboard shortcuts, command palette toggle) | No animation. Stop here. |
| Tens of times a day (hover, list navigation) | Fast and barely visible, or nothing |
| Occasional (modals, drawers, toasts) | Standard animation |
| Rare or first-time (onboarding, success, celebration) | Delight is allowed here |
A keyboard-initiated action never animates. Raycast opens and closes with no animation, which is right for something used hundreds of times a day: any duration reads as lag.
If the request fails here, say so and offer the still alternative: an instant state change or a static affordance.
Name one before continuing:
If none fits, do not build it. "It looks cool" on something seen often is a reason to stop. Data the user is reading or acting on does not move for style: a mouse-tracking effect suits a marketing page, not a chart in a banking app.
Take the first row that fits.
| Need | Tool |
|---|---|
| Hover, press, color, a state toggled by a class or attribute | CSS transition |
| Entry on mount with no JS state | CSS @starting-style |
| Fixed motion that must stay smooth while the page loads | CSS animation |
| Programmatic control without a library | WAAPI (element.animate()) |
| Springs, layout animation, exit animation, gesture-driven values | Motion (motion.dev) |
CSS animations run off the main thread. A requestAnimationFrame loop drops frames while the browser loads, runs scripts or paints. So use CSS for motion known in advance and JS for dynamic, interruptible motion.
If the request is really for a component (toast, drawer, command menu, dropdown), stop and use pick-ui-library. A hand-rolled one usually lacks focus management.
transform and opacity. They skip layout and paint. width, height, margin, padding, top and left trigger both. clip-path is also fine. height is acceptable only for an accordion, which has no transform equivalent.scale(0.9) to scale(0.97) with opacity: 0, never from scale(0). Nothing real appears from nothing.transform-origin: var(--transform-origin) in Base UI. A modal has no trigger anchor, so it stays centered.translate() are relative to the element's own size. translateY(100%) moves it by its own height whatever the content, so prefer it to fixed pixels.transform on the element that moves. A CSS variable on a parent that a child's transform reads recalculates styles for every child on every frame.x, y, scale and rotate props are hardware accelerated from version 14.2. On older versions, use the string form when the page is busy:<motion.div animate={{ x: 100 }} /> // accelerated from motion 14.2
<motion.div animate={{ transform: "translateX(100px)" }} /> // accelerated in every version
| Situation | Easing |
|---|---|
| Entering or exiting | ease-out |
| Moving or morphing on screen | ease-in-out |
| Hover or color change | ease |
| Constant motion (marquee, progress) | linear |
| Anything else | ease-out |
Do not use ease-in on UI. It starts slow, which delays the moment the user is watching. At the same 200ms, ease-out feels faster.
The built-in CSS keywords are too weak for deliberate motion. Use these curves:
--ease-out: cubic-bezier(0.23, 1, 0.32, 1); /* UI entrances and exits */
--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* movement on screen */
--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1); /* iOS-like drawer */
For any other curve, take one from easing.dev or easings.co.
| Element | Duration |
|---|---|
| Button press | 100-160ms |
| Tooltip, small popover | 125-200ms |
| Dropdown, select | 150-250ms |
| Modal, drawer | 200-500ms |
| Marketing, explanation | Can be longer |
Keep UI animation under 300ms. A 180ms dropdown feels more responsive than a 400ms one.
Use a spring instead of a duration for drag with momentum, a gesture the user can interrupt or reverse, an element that should feel alive, or decorative mouse tracking:
{ type: "spring", duration: 0.5, bounce: 0.2 } // default
{ type: "spring", mass: 1, stiffness: 100, damping: 10 } // when you need physical control
Keep bounce between 0.1 and 0.3. Reserve visible bounce for drag-to-dismiss and playful moments.
ease-out on release.@media (prefers-reduced-motion: reduce) {
.element { animation: fade 0.2s ease; } /* keep opacity and color, drop movement */
}
@media (hover: hover) and (pointer: fine) {
.element:hover { transform: scale(1.05); } /* a tap on touch fires a false hover */
}
const reduce = useReducedMotion();
const closedX = reduce ? 0 : "-100%";
Reduced motion means fewer and gentler animations, not none. Keep the transitions that aid understanding and remove position changes.
Read RECIPES.md when the request is a button press, dropdown, tooltip, modal, drawer, toast, accordion, stagger, hold-to-confirm, tab indicator, scroll reveal, drag-to-dismiss, or a crossfade that will not settle. Start from the recipe and adapt it.
Each row blocks a change in review-animations.
| Do not write | Write instead |
|---|---|
transition: all | The exact properties |
scale(0) entrance | scale(0.95) with opacity: 0 |
ease-in on UI | ease-out or --ease-out |
Built-in ease-out on a deliberate animation | cubic-bezier(0.23, 1, 0.32, 1) |
| Animation on a keyboard shortcut or a 100+ a day action | No animation |
| UI duration over 300ms without a reason | 150-250ms |
transform-origin: center on a trigger-anchored popover | var(--transform-origin) |
| Keyframes on toasts and toggles | CSS transitions |
Animated width, height, margin, padding, top, left | transform and opacity |
Motion x, y, scale on a busy page before 14.2 | Upgrade, or the transform string |
Ungated :hover motion | @media (hover: hover) and (pointer: fine) |
No prefers-reduced-motion branch | A gentler variant |
| A group that enters all at once | A 30-80ms stagger |
Write the code. Then add at most a few lines:
The code is the deliverable, so keep the notes short.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub officialunofficial/skills --plugin officialunofficial-skills85 skills in this plugin
/alignmentMeasures a running page for edges, gaps, centres and radii that miss by a pixel or two, judges visual weight, and returns a numbered report with proof./animate-expoBuilds animations in React Native and Expo with Reanimated, Gesture Handler, Expo Router and expo-haptics. Decides in order whether to animate, which tool, which properties, spring or timing, and how to stay on the UI thread. Use when animating anything in an Expo app, adding gestures, sheets, screen transitions, press feedback or haptics, or fixing motion that stutters on a device. For web animation use `animate`./animation-performanceDiagnoses and fixes web animations that drop frames. Covers the layout, paint and composite pipeline, cheaper property swaps, CSS and WAAPI against requestAnimationFrame, the accelerated path in Motion, React re-renders per frame, inherited CSS variables, blur cost, and when will-change helps. Use when an animation is janky, choppy or stutters, when choosing which property to animate, or when reaching for will-change or GPU layers. For easing, duration or whether to animate at all, use animate.Other plugins' skills for the same job