Back to Skills

transitions-dev

Production-ready CSS transitions for web apps. Use when implementing notification badges, dropdowns, modals, panel reveals, page transitions, card resizes, number pop-ins, text swaps, icon swaps, success checks, avatar group hovers, or error state shakes. Triggers on "add a transition", "animate the dropdown", "make the modal open smoothly", "swap icon", "page slide", "stagger animation", "open / close transition", "make it animate", "tween the size", "fade between", "smooth open", "smooth close

36stars4forksUpdated 8/17/2026

Security Assessment

Safe(97/100)
Security Score97/100

About transitions-dev

transitions-dev is a library of twelve production-ready, framework-agnostic CSS transitions for web interfaces. It solves the recurring problem of hand-crafting polished micro-interactions — notification badges, dropdowns, modals, panel reveals, page slides, card resizes, number pop-ins, text and icon swaps, success checkmarks, avatar-group hovers, and error-state shakes — by providing drop-in snippets that read from a single shared set of semantic CSS custom properties. Each transition is namespaced under `t-*` selectors, carries no framework dependencies or demo-specific markup, and ships with a required `prefers-reduced-motion` guard.

The skill centers on a quick-reference table mapping each transition to when it should be used and its detailed per-transition file, plus decision rules for matching a user's request to the right effect (match the visible UI element first, then the verb) and a rule to prefer the lower-overhead option when two could fit. A universal `:root` block is dropped into a project once, and every snippet reads tunable values (durations, easings, distances, blur) from those semantic names. Each per-transition file documents the HTML hooks, tunable variables, the CSS keyframes, and any JavaScript orchestration needed to replay the animation.

Target users are frontend developers and designers who want consistent, accessible, copy-paste animations without adopting an animation framework. Typical use cases include adding a smooth modal open/close, animating a dropdown from its trigger, popping a notification badge, celebrating a completed action with a success check, or shaking a form field on validation error.

FAQ

How do I install these transitions?

Paste the universal `:root` block into your project once, then copy the snippet for the transition you need and wire up the documented HTML hooks. There are no framework dependencies.

Do the transitions respect reduced-motion preferences?

Yes. Every snippet ships with a required `@media (prefers-reduced-motion: reduce)` guard that zeroes the animation for users who have asked for less motion at the OS level. The docs instruct you to keep it.

How do I customize timing and easing?

Each transition reads semantic CSS custom properties (like `--digit-dur`, `--badge-blur`, `--resize-ease`) from the shared `:root` block, so you tune values in one place rather than chasing per-component numbers.

How do I pick between two transitions that could both fit?

Match against the visible UI element first, then the verb. If two still fit, prefer the lower-overhead one (card resize over panel reveal, dropdown over modal) unless the design clearly calls for the heavier surface.

Do any of the transitions require JavaScript?

Some do for orchestration — for example, the number pop-in removes the animating class, swaps digit spans, forces a reflow, and re-adds the class to replay. Each file documents any JS needed.

All Files

14 files
02-number-pop-in.md3.7 KB
View
03-notification-badge.md3.9 KB
View
_root.css2.9 KB
View
01-card-resize.md1.6 KB
View
05-menu-dropdown.md3.4 KB
View
08-page-side-by-side.md3.3 KB
View
12-error-state-shake.md8.3 KB
View
04-text-states-swap.md3.0 KB
View
11-avatar-group-hover.md7.2 KB
View
SKILL.md11.1 KB
View
06-modal.md2.7 KB
View
09-icon-swap.md2.3 KB
View
10-success-check.md6.9 KB
View
07-panel-reveal.md2.7 KB
View

Install transitions-dev

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill