# transitions-dev: twelve ready CSS transitions (mirror) (Jakubantalik/transitions-dev) — skill card for AI agents

> AgentGid skill card. Checked on 2026-11-23 against commit 038b0bd.
> Every fact comes from the pack's own files at that commit. Numbers marked "as reported" are the author's.
> Human page: https://agentgid.com/skills/jakubantalik/transitions-dev/

## Explain it to a non-programmer
Twelve ready-made web animations for your AI coding assistant. Examples: a menu that grows from its button, a pop-up that scales in, a shaking field on a wrong password and a check mark on success. Your assistant picks the right one, pastes the author's code into your site unchanged and connects it to your page. This copy is an older mirror: the author now keeps the main version in Jakubantalik/transitions.dev.

## Who it is for
- You build a website or web app with an AI assistant and want menus, pop-ups and panels to open smoothly
- You want small touches like a badge on a bell icon, a number that rolls when it changes or a success check mark
- You want a wrong form field to shake and show a message
- You use Claude Code, Codex or Cursor
- Not for: You want the newest set of transitions: the author moved new work to Jakubantalik/transitions.dev
- Not for: You make a phone app or a video: these are web page animations written in CSS

## What it is
- Kind: knowledge, command
- License: MIT
- Repository: https://github.com/Jakubantalik/transitions-dev

## What it does
- Picks a transition by what is on screen first, then by the verb (a dot on a button → badge, a surface growing from a button → dropdown)
- Adds one :root block of timing values to your global stylesheet, only if it is not there yet
- Pastes the chosen transition's CSS exactly as written, keeping every listed property and will-change
- Wires the class names and state attributes the reference file names (.t-dropdown, data-open, .is-closing …)
- Copies a short JavaScript snippet for the eight transitions that need one, keeping the timing reads from the CSS values
- When two transitions fit, prefers the lighter one (card resize over panel reveal, dropdown over modal)
- Never cuts: the prefers-reduced-motion block in every snippet

## Skills
| Skill | Call | Changes code? | In plain words |
|---|---|---|---|
| transitions-dev | /skill transitions-dev, or plain language ("animate the dropdown opening") | yes | Adds a ready web animation to your page and connects it to your buttons, menus or forms |

### transitions-dev
- Asks for: The element to animate: a menu, pop-up, panel, badge, icon, number, form field or row of avatars
- Asks for: What should happen: open, close, swap, slide, confirm success or show an error
- Gives: The shared :root timing block, added once to your global stylesheet
- Gives: The chosen transition's CSS, pasted verbatim
- Gives: Class names and state attributes wired into your markup
- Gives: A short JavaScript snippet for transitions that need one, adapted to your page
- Say: "Animate the dropdown opening"

## Know before installing
- This repository is a mirror kept so the old install command still works; new transitions land in Jakubantalik/transitions.dev first.
- It switches on by itself when you ask for things like "make it animate", "smooth open" or "shake on invalid".
- It edits your global stylesheet once, adding a shared block of timing values; later animations reuse it.
- It does not bring in an animation library; the snippets are plain CSS plus small JavaScript where needed.
- The success check covers only the appearing animation; hiding it is up to you.

## Install (official commands)
- Any agent (skills tool): `npx skills add Jakubantalik/transitions-dev` — The legacy command for this mirror. The author recommends the main repository instead: npx skills add Jakubantalik/transitions.dev Remove: `delete the transitions-dev folder from your agent's skills folder`.
- Claude Code, Cursor, Codex (by hand): Copy the folder skills/transitions-dev into .claude/skills/, .cursor/skills/ or .agents/skills/.

## What runs on the user's machine
- Code on the machine: no
- Network: none
- Install: Markdown reference files and one CSS file. No hooks, no scripts inside the skill folder.
- At work: Your assistant edits your own project's CSS and markup, and adds small JavaScript snippets for eight of the transitions. That code runs in your web page, not on your machine at install.
- Not part of the skill: build/extract.mjs is the author's maintenance script that regenerates the skill files from the demo site's HTML; installing the skill does not run it.

## Settings
- `SOURCE_HTML`: Only for the author's build script: path to the demo site's index.html used to regenerate the skill files

## Examples (from the pack's own files)
- Card resize, the shortest snippet in the pack: output format defined in skills/transitions-dev/01-card-resize.md
- What the assistant does when it inserts a transition: output format defined in skills/transitions-dev/SKILL.md

## Mistakes to avoid
- Not: Install this mirror expecting the newest transitions. Instead: Use Jakubantalik/transitions.dev, which the author names as the main home. Why: This repository only mirrors the skill for the old install command
- Not: Rewrite the snippet with transition all or shorthand to make it shorter. Instead: Paste the CSS verbatim and keep the listed properties. Why: Every snippet lists exact properties so unrelated style changes do not animate
- Not: Drop the setTimeout that removes .is-closing on a dropdown or modal. Instead: Keep the close-then-cleanup step from the reference file. Why: Without it the next open starts from the closing scale
- Not: Keep the success check's stroke-dasharray of 20. Instead: Replace it with path.getTotalLength() rounded up by 1 for your own icon path. Why: The 20 is a placeholder; a wrong value pre-reveals or over-draws the stroke
- Not: Add the :root block again for each new transition. Instead: Add it once; later transitions reuse it. Why: The skill says not to duplicate the install block

## May I use it like this?
- commercial-app: yes (MIT)
- inside-app-bundle: yes (MIT)
- client-work: yes (MIT)
- redistribute-files: conditions (MIT: keep the copyright and permission notice in copies of the skill files)

## Which one to pick
- If You want the maintained version with the newest transitions: skill:Jakubantalik/transitions.dev
- If Your setup still uses the legacy install command and twelve ready CSS transitions are enough: skill:Jakubantalik/transitions-dev
- If You want playbooks on how UI should move, plus reviews of motion you already have, rather than paste-in snippets: skill:emilkowalski/skills

## Works well with
- skill:Jakubantalik/transitions.dev: The author's main repository for the same skill; this one mirrors it

## Works in and needs
- Works in Claude Code, Cursor, Codex: skills folder
- Needs Node.js (npx): Only for the one-command install with the skills tool

## How to tell it works
Ask your assistant "add a notification badge to the bell icon". It should add the shared timing block once, paste a CSS snippet with t- class names and a reduced-motion block, and leave other styles untouched.

## Related
- Jakubantalik/transitions.dev
