transitions-dev

Implements CSS and JavaScript UI transition patterns for common interface elements.

7|1|Updated Mar 29, 2024
One-click install
npx skills add https://github.com/aBgAmeuR/harmony --skill transitions-dev-abgameur
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: transitions-dev
Source: https://github.com/aBgAmeuR/harmony/tree/main/.agents/skills/transitions-dev
Command: npx skills add https://github.com/aBgAmeuR/harmony --skill transitions-dev-abgameur

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Hand-tuning micro-interactions like dropdowns, modals, error shakes, and skeleton reveals is slow and error-prone; this Skill provides ready-to-use, tunable CSS/JS transition snippets so you can add polished motion to a web UI without designing each animation from scratch. ## Core Features & Use Cases - Ready-made transition snippets: Covers card resize, number pop-in, notification badges, text swaps, dropdowns, modals, panel reveals, page slides, icon swaps, success checks, avatar hover springs, error shakes, input clear dissolve, skeleton loaders, shimmer text, sliding tabs, tooltips, staggered text reveals, and 3D card tilt. - CSS variable tuning: Every transition reads durations, easings, distances, and blurs from semantic custom properties in a shared :root block, so one theme tunes all transitions. - Accessibility built in: Each snippet includes a required prefers-reduced-motion guard that disables animation for users who request less motion. - Use Case: When building a settings page, use the modal, tooltip, and error-shake snippets together to animate dialog open/close, hover hints, and form validation feedback with consistent timing. ## Quick Start Add the dropdown transition from the transitions-dev skill to my menu component and wire up the open and close classes.

Frequently Asked Questions about transitions-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I animate a dropdown menu opening with CSS?

Apply the .t-dropdown class with a data-origin attribute for transform-origin, then toggle .is-open to show and swap to .is-closing on close. The CSS scales from --dropdown-pre-scale to 1 with opacity, and JS removes .is-closing after --dropdown-close-dur.

How do I add an error shake animation to a form input?

Add .is-error to the wrapper and input plus .is-shaking to the input; the keyframes shake left/right with overshoot using per-segment easing. Remove .is-shaking, force a reflow, and re-add it to replay the shake on subsequent validation failures.

Do these CSS transitions support reduced motion preferences?

Yes, every snippet includes a required @media (prefers-reduced-motion: reduce) guard that disables transitions and animations. Keep this block in place so users who request less motion at the OS level see instant state changes instead.

Can I use these transition snippets with React?

Yes, the patterns are framework-agnostic CSS plus small vanilla JS routines, and the avatar group hover snippet includes a complete React component example. Other snippets translate directly by toggling classes or data attributes from component state.

Why does my CSS transition not replay when triggered again?

CSS animations and transitions need a clean baseline to restart: remove the state class, force a reflow with void el.offsetWidth, then re-add the class. Several snippets like the success check and error shake document this reflow pattern explicitly.