emil-animations
БесплатноБез исполняемых скриптовНе проверенAnimation for product interfaces — when to animate (and when not to), easing, duration, springs, enter/exit transitions, and performance. Use when adding or…
от freekmurze★ 1 019 звёзд на GitHubОб этом скилле
Interface Animations
Animation in a product interface is feedback, not decoration. The best UI animations go unnoticed — they make the interface feel fast, connected, and physical, then get out of the way. Default to less: a fast, well-eased 200ms transition beats an elaborate 500ms sequence every time. When in doubt, don't animate. When you do animate, be exact — easing and duration are decisions, not defaults you inherit from a snippet.
Match the project's stack. Before writing any animation code, check what the project already uses: plain CSS transitions/keyframes, Tailwind, Motion (motion/framer-motion in package.json), React Spring, or WAAPI. Write animations in that system. Never add an animation library for something CSS transitions can do, and never hand-roll spring physics when Motion is already installed.
Quick Reference
| Topic | Where |
|---|---|
| Modals, drawers, popovers, dropdowns, toasts, tooltips — exact recipes | patterns.md |
| Enter/exit + stagger, icon swaps, press feedback, page-load rules | patterns.md |
| Springs, performance, interruptibility, easing curve library, debugging | techniques.md |
Decision Framework 1: Should this animate at all?
Ask how often the user will trigger it:
- 100+ times a day (command menu, keyboard navigation, tab switching in a power tool) → No animation. Speed beats smoothness. Raycast doesn't animate its menu for exactly this reason.
- Keyboard-initiated action (arrow-key list navigation, shortcuts, focus movement) → Never animate. Keyboard users are moving fast; animation makes the UI feel disconnected from their input.
- Occasional interaction (opening a modal, a dropdown, a drawer) → Standard animation, under 300ms.
- Rare or first-time moment (onboarding, empty state, success celebration) → Can be more elaborate.
- Marketing page vs. product: marketing pages may use longer, showier motion; product UI must stay fast and purposeful.
Animate when it adds information: spatial continuity (where did this come from?), state feedback (did my click register?), or connection between cause and effect. If the animation answers no question, cut it.
Decision Framework 2: Which easing?
- Element entering or exiting the screen (modal, dropdown, toast, tooltip) →
ease-out. The fast start reads as instant response to the user's action. - Element already on screen moving or resizing (reordering, layout shift, slider) →
ease-in-out. Natural accelerate-then-brake motion. - Hover / color / shadow change →
ease(or a soft ease-out), 150ms. - Constant-speed motion only (marquee, spinner, progress-as-time) →
linear. ease-inalone → almost never. The slow start delays feedback and feels sluggish. Its only legitimate use is as the exit half of a pairing (subtle exit withease-inwhile enter usesease-out).
Built-in CSS keywords are weak. Prefer custom curves — a good default for enters is cubic-bezier(0.32, 0.72, 0, 1); the full weak-to-strong curve library is in techniques.md.
Use a spring instead of a curve when motion is gesture-driven or interruptible (drag-to-dismiss, sheets, anything that follows a finger). Springs preserve velocity when interrupted; CSS keyframes restart from zero. Default spring: { type: "spring", duration: 0.5, bounce: 0 } — add bounce (0.1–0.3, never more) only for playful, physical interactions.
Decision Framework 3: What duration?
| What | Duration |
|---|---|
| Hover, press, color/shadow changes | 100–150ms |
| Tooltips, dropdowns, popovers | 150–250ms |
| Modals, drawers, toasts | 200–300ms |
| Page-level transitions | 300–400ms |
Rules of thumb:
- UI animations stay under 300ms. If it feels slow, it is slow — cut duration before anything else.
- Exits run ~20–30% faster than enters (e.g. enter 250ms, exit 180ms). The user has already decided to leave; don't make them wait.
- Bigger elements and longer travel get more time; a full-screen sheet needs more than a tooltip.
- Perceived speed matters as much as real speed — a snappy 180ms dropdown makes the whole app feel faster.
Core Principles
Animate only
transformandopacity. They run on the GPU and skip layout/paint. Never animatewidth,height,margin,padding,top/left, or box-shadow spread directly — animatetransform: scale/translateand cross-fade instead. Keepfilter: blur()under 20px (expensive, worst on Safari).Interactive state gets CSS transitions; one-shots get keyframes. Transitions retarget smoothly when the user reverses mid-animation (open → close while still opening); keyframes restart and look broken. Reserve
@keyframesfor enter sequences and loaders that always run to completion..drawer { transform: translateX(-100%); transition: transform 250ms cubic-bezier(0.32, 0.72, 0, 1); } .drawer[data-open] { transform: translateX(0
Установить emil-animations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл emil-animations?
Animation for product interfaces — when to animate (and when not to), easing, duration, springs, enter/exit transitions, and performance. Use when adding or reviewing motion in UI components (modals, popovers, drawers, toasts, dropdowns, tooltips, buttons), choosing an easing curve or duration, fixing animations that feel slow, janky, or wrong, or implementing hover/press feedback and reduced-motion support. Triggers on: animation, transition, easing, ease-out, ease-in-out, cubic-bezier, spring, bounce, duration, timing, keyframes, transform, opacity, fade, slide, scale, stagger, hover, press, active state, microinteraction, modal, dialog, drawer, sheet, popover, dropdown, tooltip, toast, Framer Motion, motion/react, AnimatePresence, WAAPI, will-change, GPU, janky, choppy, feels slow, feels off, make it smooth, prefers-reduced-motion.
Как установить скилл emil-animations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл emil-animations запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic