animate

Implements UI animations using CSS transitions, WAAPI, and Motion with defined easing and duration rules.

Updated Aug 25, 2026
One-click install
npx skills add https://github.com/KlyrhonMiko/kly-skills --skill animate-klyrhonmiko
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: animate
Source: https://github.com/KlyrhonMiko/kly-skills/tree/main/data/skills/animate
Command: npx skills add https://github.com/KlyrhonMiko/kly-skills --skill animate-klyrhonmiko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Deciding whether and how to animate a UI element is error-prone: wrong easings, sluggish durations, non-accelerated properties, and missing reduced-motion support make interfaces feel broken. This Skill turns a motion request into a reviewed implementation by enforcing a fixed decision sequence. ## Core Features & Use Cases - Gated build sequence: Decides first whether the element should animate at all based on usage frequency, then names the motion's purpose before writing any code. - Opinionated ingredient tables: Provides exact easing curves, duration ranges, and spring configs so no values are approximated, plus rules for transform/opacity-only properties and transform-origin placement. - Ready-to-build recipes: RECIPES.md ships implementations for button presses, dropdowns, tooltips, modals, drawers, toasts, accordions, staggers, hold-to-confirm, tab indicators, scroll reveals, and drag-to-dismiss. - Use Case: When asked to add an entrance animation to a dropdown menu, the Skill selects a CSS transition with scale(0.95) + opacity, a strong ease-out curve at 200ms, transform-origin at the trigger, and ships reduced-motion and hover gating alongside. ## Quick Start Ask the AI to animate the dropdown menu opening on my settings page using the animate skill.

Frequently Asked Questions about animate

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

FAQPage Schema
How do I animate a dropdown or popover in CSS?▼

Use a CSS transition on opacity and transform with scale(0.95) as the starting state, a strong ease-out curve like cubic-bezier(0.23, 1, 0.32, 1), and 150-250ms duration. Set transform-origin to the trigger element so the panel appears to grow out of what was clicked.

CSS transition vs Motion library for web animations?▼

CSS transitions handle hover, press, and class-toggled states; WAAPI adds programmatic control without a dependency. Motion is needed for springs, layout animations, exit animations, and gesture-driven values that users can interrupt or reverse mid-motion.

When should a UI element not be animated?▼

Elements triggered 100+ times per day, such as keyboard shortcuts or command palette toggles, should never animate. Delight animations are reserved for rare first-time moments like onboarding, and data the user reads or acts on should not move for style.

Why does my animation drop frames under page load?▼

JavaScript requestAnimationFrame animations compete with the main thread during loading and painting. Use CSS animations for predetermined motion since they run off the main thread, and in Motion use full transform strings instead of x/y/scale shorthand props.

How do I support prefers-reduced-motion in animations?▼

Ship a reduced-motion variant with every animation using a media query that keeps opacity and color transitions but drops transform-based movement. Reduced motion means fewer and gentler animations, not zero, so comprehension aids remain.

Why should UI animations avoid ease-in and scale(0)?▼

ease-in starts slow, delaying the exact moment the user watches, making the interface feel sluggish. scale(0) entrances look unnatural because nothing real appears from nothing; start from scale(0.9-0.97) combined with opacity 0 instead.