Provides 36 production-ready CSS transitions for common UI patterns like dropdowns, modals, toasts, skeleton loaders, and AI thinking states. Each transition is a drop-in snippet with prefers-reduced-motion support.
Ships in transitions-dev. 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.
Thirty-six portable CSS transitions, each namespaced under t-* selectors with semantic CSS custom properties. Drop-in: paste the snippet, wire the documented HTML hooks, done. No framework dependencies, no demo-specific markup, and every snippet ships a prefers-reduced-motion guard.
| Transition | When to use | Reference |
|---|---|---|
| Card resize | Tween a container's width or height when its layout state changes. | 01-card-resize.md |
| Number pop-in | Swap changed digits on a 3D drum with a bounce when a number updates. | 02-number-pop-in.md |
| Notification badge | Slide a small badge onto a trigger and pop the dot. | 03-notification-badge.md |
| Text states swap | Swap text in place with a blurred up-and-down transition. | 04-text-states-swap.md |
| Menu dropdown | Open an origin-aware dropdown that grows from its trigger. | 05-menu-dropdown.md |
| Modal open / close | Scale-up modal dialog with a softer scale-down on close. | 06-modal.md |
| Panel reveal | Slide a panel into a region with a cross-blur. | 07-panel-reveal.md |
| Page side-by-side | Slide between two side-by-side pages (list ↔ detail, step 1 ↔ step 2). | 08-page-side-by-side.md |
| Icon swap | Cross-fade two icons in the same slot with blur and scale. | 09-icon-swap.md |
| Success check | Compose fade + rotate + Y-bob + path stroke-draw to celebrate a completed action. | 10-success-check.md |
| Avatar group hover | Distance-falloff lift on a row of items with a bouncy spring on return. | 11-avatar-group-hover.md |
| Error state shake | Per-segment cubic-bezier shake with auto-reverting border + message. | 12-error-state-shake.md |
| Input clear with dissolve | Fly-out + per-word streak when a text field is cleared. | 13-input-clear-dissolve.md |
| Skeleton loader and reveal | Pulse a placeholder, then cross-fade + cross-blur to the loaded content. | 14-skeleton-reveal.md |
| Shimmer text | Sweep a highlight band across muted text on a loop (pure CSS). | 15-shimmer-text.md |
| Tabs sliding | Slide the active pill between tabs in a segmented control. | 16-tabs-sliding.md |
| Tooltip open/close | Delayed fade+scale in, instant out, travels between triggers. | 17-tooltip.md |
| Texts reveal | Staggered blurred rise for stacked text lines, quiet fade out. | 18-texts-reveal.md |
| Card hover tilt | Tilt a card in 3D toward the pointer with a cursor-tracked glare. | 19-card-tilt.md |
| Plus to menu morph | Morph a circular trigger into the menu / panel it opens. | 20-plus-menu-morph.md |
| Accordion expand | Grow / shrink a panel via grid-rows with a chevron flip. | 21-accordion.md |
| Toast open / close | Rise a toast from below with fade + cross-blur, slower in than out. | 22-toast.md |
| Like button | Fill a heart with a pop + particle burst on like. | 23-like-button.md |
| Learn more hover | Slide the chevron and spread its arms into an arrow on hover. | 24-learn-more-hover.md |
| Checkbox check | Fill the box, then stroke-draw the checkmark. | 25-checkbox-check.md |
| Spinning counter | Roll digits through the numbers on a 3D drum, landing with a bounce. | 26-spinning-counter.md |
| Toggle | Travel the switch thumb with a double-bounce overshoot. | 27-toggle.md |
| Thinking states | Shimmer a status line while it holds, then swap it to the next state. | 28-thinking-states.md |
| Reasoning stream | Step an agent-reasoning transcript up two lines at a time on a loop. | 29-reasoning-stream.md |
| Streaming text | Resolve streamed words one by one through a soft cross-blur. | 30-streaming-text.md |
| Matrix dot loader | Pulse a 4×4 dot matrix in scan / twinkle / orbit / pulse patterns. | 31-matrix-loader.md |
| Banner stacking | Stack banners like toasts — new ones rise in, older ones push back. | 32-banner-stacking.md |
| Text morph | Keep the letters two labels share and cross-blur only the part that changes, easing its width. | 33-text-morph.md |
| Text swap soft | Cross-blur a value into the new one in place, both at once, with no movement. | 34-text-swap-soft.md |
| Donut chart | Ring segments with even gaps and rounded corners that morph to new values. | 35-donut-chart.md |
| Number subtle change | Cross-fade changed digits in place, rising or falling with the value. | 36-number-subtle-change.md |
When the user asks for a transition, match against the visible UI element first, then the verb:
transitions reveal and let the user pick. Don't guess.If two transitions could fit, prefer the lower-overhead one (card resize over panel reveal, dropdown over modal, success check over a full modal celebration) unless the design clearly calls for the heavier surface. The success check is animation-only — if you also need to swap from a spinner to the check, pair it with icon swap.
The skill exposes four namespaced verbs the agent should recognise in addition to direct transition requests. Every command starts with transitions so the invocation never collides with verbs from other skills installed in the same project.
Trigger phrases: transitions reveal, "reveal the transitions", "list all transitions", "what transitions are in this skill", "show the transitions catalog".
Behaviour: print the thirty-six transitions as a numbered plain-text list — name, one-line summary, and the matching reference filename. Reuse the rows in ## Quick reference above; do not invent new copy. No project access.
Trigger phrases: transitions review, "review my project", "audit my animations", "where would transitions.dev help", "find places to use this skill".
Behaviour:
transition: declarations, @keyframes, hardcoded ms / s durations in style files, components matching the decision-rule patterns (modals, dropdowns, badges, search inputs, skeletons, tabs, tooltips, …).path/to/Component.tsx:L42 — looks like a dropdown opening, suggest menu-dropdown (05-menu-dropdown.md).t-* class.transitions apply on any line to install the suggested transition."Trigger phrases: transitions apply, "apply a transition here", "add the right transition", "install transitions-dev here", "fix the animation on this element".
Behaviour:
transitions apply menu-dropdown), use it.## Decision rules on that context and pick one transition. If two could fit, prefer the lower-overhead one (same tie-breaker the existing rules use).## Output format verbatim (root block, snippet, hooks, reduced-motion guard, JS orchestration if needed).transitions reveal and ask the user to choose.Trigger phrases: transitions refine, "refine my transitions", "scan for ad-hoc transitions", "replace hardcoded durations with motion tokens", "tokenize my animations", "tune the durations / easing", "audit my custom keyframes", "make the timing consistent", "align to the motion tokens".
Behaviour:
style= / CSS-in-JS, styled-components, <style> blocks, Tailwind arbitrary values like duration-[300ms]) for ad-hoc motion: transition / animation shorthands and longhands, custom @keyframes blocks, hardcoded durations (…ms / …s), easing (cubic-bezier(...) or keywords), translate distances (px), scale(...), and blur(...).## Decision rules. For a @keyframes block, read the animation that drives it and judge the keyframes' own duration/easing.## Motion tokens and suggest the token whose documented usage matches — only when the usages line up. A 300ms modal close maps to --duration-quick because both are "modal close", even though the numbers differ. If a value's usage matches no token's usage, list it as no matching token usage and leave it untouched — never force a swap just because a number is close.path/to/Component.css:L42 — modal close: 300ms → var(--duration-quick) (150ms), ease → var(--ease-smooth-out). For keyframe-driven motion, suggest the token for the driving animation's duration/easing.transitions apply to install a full transition instead."The shared motion scale behind the thirty-six transitions — the same tokens the transitions.dev Motion tokens tab exposes. They ship at the top of _root.css, so once it's imported you can reference any of them as var(--…) (e.g. transition: transform var(--duration-fast) var(--ease-smooth-out)).
transitions refine maps each existing value to a usage below, then suggests the token to reference. Match on usage, not on the raw number — a 300ms modal close still maps to --duration-quick (150ms).
Durations
| Token | Value | Usage |
|---|---|---|
--duration-stagger | 40ms | per-item stagger offset |
--duration-micro | 80ms | tooltip/path delay, shake segment, large stagger |
--duration-quick | 150ms | modal/dropdown close, text swap, tooltip appear |
--duration-fast | 250ms | icon swap, dropdown/modal open, tabs sliding, page slide |
--duration-medium | 350ms | panel close, toast close |
--duration-slow | 400ms | panel open, skeleton content reveal, input clear |
--duration-very-slow | 500ms | emphasis moments, badge appear, text reveal, success check |
Easings
| Token | Value | Usage |
|---|---|---|
--ease-smooth-out | cubic-bezier(0.22, 1, 0.36, 1) | modal/dropdown/panel open + close, page slide, resize, position change |
--ease-in-out | ease-in-out | icon swap, text swap, text reveal, skeleton reveal |
--ease-out | ease-out | tooltip open / close |
--ease-linear | linear | shimmer, skeleton pulse, spinner |
--ease-bounce | cubic-bezier(0.34, 1.36, 0.64, 1) | badge pop open |
--ease-bounce-strong | cubic-bezier(0.34, 3.85, 0.64, 1) | bouncy hover-out (avatar return) |
Distances
| Token | Value | Usage |
|---|---|---|
--distance-micro | 4px | text swap |
--distance-small | 6px | error shake (small segment) |
--distance-base | 8px | badge diagonal reveal, page slide, error shake (large segment) |
--distance-medium | 12px | text reveal |
--distance-large | 30px | check badge appear |
Scales
| Token | Value | Usage |
|---|---|---|
--scale-large | 0.96 | modal open / close |
--scale-medium | 0.97 | dropdown open |
--scale-small | 0.98 | tooltip open |
--scale-tiny | 0.99 | dropdown close |
Blur
| Token | Value | Usage |
|---|---|---|
--blur-small | 2px | panel reveal, icon swap, text swap, skeleton reveal, number pop-in |
--blur-medium | 3px | page slide, text reveal |
--blur-large | 8px | success check open |
Copy _root.css into your project once and import it (or paste its :root block into your global stylesheet). It leads with the shared motion-token scale (--duration-*, --ease-*, --distance-*, --scale-*, --blur-* — see ## Motion tokens), followed by the semantic tunable variables for all thirty-six transitions. Every snippet reads from these names — --resize-*, --badge-*, --dropdown-*, --clear-*, --shimmer-*, --tabs-*, --tt-*, --stagger-*, --tilt-*, --morph-*, --acc-*, and the rest.
Each reference file also restates just the variables that snippet needs, so you can install a single transition without pulling the whole block. Don't duplicate the block — if _root.css is already imported, skip re-pasting any per-snippet :root.
The --pX-* source tokens used by the live demo at transitions.dev are intentionally not exported. Tunable values are renamed to semantic names so the user owns the design vocabulary. A few transitions (input clear, shimmer text, tabs, tooltip) carry color tokens that differ by theme — each reference file documents the html[data-theme="dark"] overrides.
When inserting a transition into the user's project:
_root.css into the user's global stylesheet, but only if they aren't already there — or just the per-snippet :root block from the reference file if installing a single transition. If the universal block is already imported, do not duplicate it.will-change. The snippets are tuned and tested..t-dropdown, .t-modal, .t-success-check, .t-avatar, .t-clear, .t-skel, .t-shimmer, .t-tabs, .t-tt, .t-stagger, .t-tilt, .t-morph, .t-acc, …) and state attributes (data-open, data-state, data-page, data-origin, aria-selected, aria-expanded, .is-open, .is-closing, .is-error, .is-shaking, .has-value, .is-clearing, .is-pulsing, .is-revealed, .is-shown, .is-hiding, .is-hover, .is-tilting).@media (prefers-reduced-motion: reduce) block. Every snippet ships one. Removing it makes the component fail accessibility audits.getComputedStyle(...)getPropertyValue("--…")) so durations stay in sync with the :root values. Shimmer text is pure CSS — no JS needed.Keep the diff small: only edit the files needed to introduce the transition. Don't rename the user's existing variables, don't reformat unrelated CSS, don't pull in a motion library.
setTimeout that removes .is-closing, the next open jumps from the closing scale instead of the resting pre-open scale.void el.offsetWidth (or offsetHeight) between class/attribute removal and re-addition is what guarantees the animation replays.transition: … with transition: all — every snippet enumerates exact properties on purpose so unrelated style changes don't ride in for free.stroke-dasharray — the snippet ships 20 as a placeholder. Replace it with path.getTotalLength() rounded up by 1 for your path, otherwise the stroke pre-reveals or over-draws.transition-timing-function in CSS for the avatar group hover — it has to be set inline in JS before the --shift / --scale-active writes so the bouncy ease-out only applies on mouseleave..is-error and .is-shaking into one class for the error state shake — keeping them orthogonal is what allows the shake to replay (remove → reflow → re-add) without flickering the whole error treatment.mix-blend-mode: multiply in dark mode — flip to screen, bump --glow-opacity to ~0.85, and paint white gradients in JS.transform + width with transition: none (then reflow + restore) or the pill animates in from translateX(0) / width: 0.pointermove to the flat outer .t-tilt wrapper, not .t-tilt-card, or the rotating edges slip under the cursor and the hover flickers..t-acc-panel-inner, never on .t-acc-panel; padding on the 0fr track leaves a residual height strip so the panel never fully closes.d path — CSS d: path interpolation is Chromium-only, so it never animates on mobile Safari / Firefox. Flip the chevron vertically (transform: scaleY(-1)) instead — it passes through a flat line at the midpoint just like the path morph and works everywhere. Keep the path symmetric about its viewBox centre and add vector-effect: non-scaling-stroke so the stroke stays constant through the flip. This is what the snippet ships.01-card-resize.md (opens in a new tab)02-number-pop-in.md (opens in a new tab)03-notification-badge.md (opens in a new tab)04-text-states-swap.md (opens in a new tab)05-menu-dropdown.md (opens in a new tab)06-modal.md (opens in a new tab)07-panel-reveal.md (opens in a new tab)08-page-side-by-side.md (opens in a new tab)09-icon-swap.md (opens in a new tab)10-success-check.md (opens in a new tab)11-avatar-group-hover.md (opens in a new tab)12-error-state-shake.md (opens in a new tab)13-input-clear-dissolve.md (opens in a new tab)14-skeleton-reveal.md (opens in a new tab)15-shimmer-text.md (opens in a new tab)16-tabs-sliding.md (opens in a new tab)17-tooltip.md (opens in a new tab)18-texts-reveal.md (opens in a new tab)19-card-tilt.md (opens in a new tab)20-plus-menu-morph.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/transitions-polishPolish and refine existing motion against the transitions.dev motion-token scale — duration, distance, scale, blur, and easing — plus the rules for WHEN each token applies (open/close asymmetry, hover-in vs hover-out, stagger offsets, and intent delays). An add-on to the transitions-dev skill, focused on tuning what already animates rather than adding new transitions. Use when the user asks to "polish my transitions", "refine the motion", "tune the timing / easing", "make the animation feel better / less janky", "tighten the durations", "fix the stagger", "align to the motion tokens", "audit the motion", "review my animations", "scan for ad-hoc transitions", "tokenize my animations", or runs the commands transitions review or transitions polish. Also drives the Refine panel's Small refinement feature. Triggers on "motion polish", "transition polish", "refine motion", "timing feels off", "too slow / too fast", "stagger", "delay", "open close timing", "hover in out"./transitions-ui-generationMake any UI, headline or image appear as if an AI agent is generating it. Five variants: ui (the default: a dotted wireframe drawn from the element's own structure, outline, boxes, text lines, icon paths, with guides, corner handles and size labels, then the real UI revealed behind a scan line), text (every glyph of a headline traced along its real outline in flowing dots, then fading in one by one), small text (a dotted line through each line of text), image (a frame, a sketch of the photo's tones, a halftone of its own pixels, colour dots, then the photo) and auto (text by size and images in one block). Two modes, skeleton and skeleton + generation texts (an agent log, the motion CSS being written, and a step line). One dependency-free runtime that works with any framework (vanilla, React, Next.js, Vue, Svelte). Use when the user asks for a "generation animation", "AI generating the UI", "agent building the component", "build-in animation", "wireframe to UI reveal", "skeleton generation", "dotted wireframe", "matrix dots", "make it look generated", "futuristic reveal", "generative UI loading", "headline generation animation", "letters drawn in dots", "glyph outline reveal", "image generation reveal", "halftone image reveal", or for an AI product that should show its output being built. Also the commands transitions generate, transitions generate texts and transitions generate preview./transitions-dev:transitions-devfrom transitions-dev
transitions-dev@bag-of-skills is listed by sngraihan/bag-of-skills — review the source before installing
npx claudepluginhub sngraihan/bag-of-skills --plugin transitions-devOther plugins' skills for the same job