emilkowal-animations — Claude Code skill: setup and guide
A set of 58 web animation rules based on Emil Kowalski's work for React and Framer Motion. Helps tune easing curves, gestures, and UI timing.
npx skills add pproenca/dot-skills --skill emilkowal-animations -a claude-codeWhat emilkowal-animations does
The skill embeds 58 web animation rules split across 8 prioritized categories. The knowledge base draws from the animations.dev course and libraries like Vaul. It pushes the agent toward custom cubic-bezier curves instead of CSS defaults. UI transitions stay capped at 300ms.
For performance reasons, the rules restrict animated properties to transform and opacity. Button presses get a scale(0.97) target. Scaling from zero is barred. Keyboard-triggered actions receive zero animation delay because keyboard input demands immediate response. A dedicated category covers Tailwind CSS v4 utilities.
What it helps with
- configure custom cubic-bezier curves and spring physics
- implement drawer swipe gestures with snap points
- add prefers-reduced-motion fallbacks for interface elements
- prevent layout shifts by animating only transform and opacity
Example prompts for the agent
- Add enter and exit transitions to this modal using emilkowal-animations rules
- Review our Framer Motion gestures against the emilkowal-animations guide
- Adjust drawer animation duration to 500ms with natural spring easing
How to install emilkowal-animations
1Skills CLI (Vercel)
npx skills add pproenca/dot-skills --skill emilkowal-animations -a claude-code2Manually: put the files in place
~/.claude/skills/emilkowal-animations/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/emilkowal-animations/
1Skills CLI (Vercel)
npx skills add pproenca/dot-skills --skill emilkowal-animations -a codex2Manually: put the files in place
.agents/skills/emilkowal-animations/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pproenca/dot-skills --skill emilkowal-animations -a cursor2Manually: put the files in place
.cursor/skills/emilkowal-animations/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pproenca/dot-skills emilkowal-animations2Manually: put the files in place
.github/skills/emilkowal-animations/SKILL.md1Skills CLI (Vercel)
npx skills add pproenca/dot-skills --skill emilkowal-animations -a gemini-cli2Platform CLI
gemini skills install https://github.com/pproenca/dot-skills --path skills/.experimental/emilkowal-animationsManually: put the files in place
.devin/skills/emilkowal-animations/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pproenca/dot-skills --skill emilkowal-animations -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about emilkowal-animations
How to install emilkowal-animations in Claude Code?
Run npx skills add pproenca/dot-skills --skill emilkowal-animations -a claude-code. The command registers the skill files in your agent configuration.
What does emilkowal-animations do?
It provides 58 prioritized animation rules based on Emil Kowalski's work on Sonner, Vaul, and animations.dev. It guides assistants when writing transitions in React, CSS, and Framer Motion.
Which CSS properties does the skill allow for animation?
The guide restricts animated properties to transform and opacity to keep work off the main thread. For element reveals without layout shifts, it directs the agent to clip-path.
Source text
SKILL.md · MIT
--- name: emilkowal-animations description: Emil Kowalski's animation best practices for web interfaces. Use when writing, reviewing, or implementing animations in React, CSS, or Framer Motion. Triggers on tasks involving transitions, easing, gestures, toasts, drawers, or motion. --- # Emil Kowalski Animation Best Practices Comprehensive animation guide for web interfaces based on Emil Kowalski's teachings, open-source libraries (Sonner, Vaul), and his [animations.dev](https://animations.dev) course. Contains 58 rules across 8 categories, prioritized by impact. ## When to Apply Reference these guidelines when: - Adding animations to React components - Choosing easing curves or timing values - Implementing gesture-based interactions (swipe, drag) - Building toast notifications or drawer components - Optimizing animation performance - Ensuring animation accessibility - Expressing any of the above with Tailwind CSS v4 utilities (see the `tw-` category) ## Rule Categories by Priority | Priority | Category | Impact | Prefix | |----------|----------|--------|--------| | 1 | Easing Selection | CRITICAL | `ease-` | | 2 | Timing & Duration | CRITICAL | `timing-` | | 3 | Property Selection | HIGH | `props-` | | 4 | Transform Techniques | HIGH | `transform-` | | 5 | Interaction Patterns | MEDIUM-HIGH | `interact-` | | 6 | Strategic Animation | MEDIUM | `strategy-` | | 7 | Accessibility & Polish | MEDIUM | `polish-` | | 8 | Tailwind v4 Utilities | MEDIUM | `tw-` | ## Quick Reference ### 1. Easing Selection (CRITICAL) - [`ease-out-default`](references/ease-out-default.md) - Use ease-out as your default easing - [`ease-custom-curves`](references/ease-custom-curves.md) - Use custom cubic-bezier over built-in CSS - [`ease-in-out-onscreen`](references/ease-in-out-onscreen.md) - Use ease-in-out for on-screen movement - [`ease-spring-natural`](references/ease-spring-natural.md) - Use spring animations for natural motion - [`ease-spring-config`](references/ease-spring-config.md) - Configure springs with duration and bounce - [`ease-ios-drawer`](references/ease-ios-drawer.md) - Use iOS-style easing for drawer components - [`ease-context-matters`](references/ease-context-matters.md) - Match easing to animation context ### 2. Timing & Duration (CRITICAL) - [`timing-300ms-max`](references/timing-300ms-max.md) - Keep UI animations under 300ms - [`timing-faster-better`](references/timing-faster-better.md) - Faster animations improve perceived performance - [`timing-asymmetric`](references/timing-asymmetric.md) - Use asymmetric timing for press and release - [`timing-tooltip-delay`](references/timing-tooltip-delay.md) - Delay initial tooltips, instant subsequent ones - [`timing-drawer-500ms`](references/timing-drawer-500ms.md) - Use 500ms duration for drawer animations ### 3. Property Selection (HIGH) - [`props-transform-opacity`](references/props-transform-opacity.md) - Animate only transform and opacity - [`props-hardware-accelerated`](references/props-hardware-accelerated.md) - Use hardware-accelerated animations when main thread is busy - [`props-will-change`](references/props-will-change.md) - Use will-change to prevent 1px shift - [`props-avoid-css-variables`](references/props-avoid-css-variables.md) - Avoid CSS variables for drag animations - [`props-clip-path-performant`](references/props-clip-path-performant.md) - Use clip-path for layout-free reveals ### 4. Transform Techniques (HIGH) - [`transform-scale-097`](references/transform-scale-097.md) - Scale buttons to 0.97 on press - [`transform-never-scale-zero`](references/transform-never-scale-zero.md) - Never animate from scale(0) - [`transform-percentage-translate`](references/transform-percentage-translate.md) - Use percentage values for translateY - [`transform-origin-aware`](references/transform-origin-aware.md) - Make animations origin-aware - [`transform-scale-children`](references/transform-scale-children.md) - Scale transforms affect children - [`transform-3d-preserve`](references/transform-3d-preserve.md) - Use preserve-3d for 3D transform effects - [`transform-starting-style`](references/transform-starting-style.md) - Animate enter states with @starting-style ### 5. Interaction Patterns (MEDIUM-HIGH) - [`interact-interruptible`](references/interact-interruptible.md) - Make animations interruptible - [`interact-momentum-dismiss`](references/interact-momentum-dismiss.md) - Use momentum-based dismissal - [`interact-damping`](references/interact-damping.md) - Damp drag at boundaries - [`interact-scroll-drag-conflict`](references/interact-scroll-drag-conflict.md) - Resolve scroll and drag conflicts - [`interact-snap-points`](references/interact-snap-points.md) - Implement velocity-aware snap points - [`interact-friction-upward`](references/interact-friction-upward.md) - Allow upward drag with friction - [`interact-pointer-capture`](references/interact-pointer-capture.md) - Use pointer capture for drag operations - [`interact-multitouch`](references/interact-multitouch.md) - Ignore extra touch points during drag - [`interact-touch-hover`](references/interact-touch-hover.md) - Gate hover animations behind a pointer media query ### 6. Strategic Animation (MEDIUM) - [`strategy-keyboard-no-animate`](references/strategy-keyboard-no-animate.md) - Never animate keyboard-initiated actions - [`strategy-frequency-matters`](references/strategy-frequency-matters.md) - Consider interaction frequency before animating - [`strategy-purpose-required`](references/strategy-purpose-required.md) - Every animation must have a purpose - [`strategy-feedback-immediate`](references/strategy-feedback-immediate.md) - Provide immediate feedback on all actions - [`strategy-marketing-exception`](references/strategy-marketing-exception.md) - Marketing sites are the exception - [`strategy-cohesion`](references/strategy-cohesion.md) - Match motion to the component's personality - [`strategy-review-fresh-eyes`](references/strategy-review-fresh-eyes.md) - Review animations in slow motion and the next day ### 7. Accessibility & Polish (MEDIUM) - [`polish-reduced-motion`](references/polish-reduced-motion.md) - Respect prefers-reduced-motion - [`polish-opacity-fallback`](references/polish-opacity-fallback.md) - Use opacity as reduced motion fallback - [`polish-framer-hook`](references/polish-framer-hook.md) - Use useReducedMotion hook in Framer Motion - [`polish-dont-remove-all`](references/polish-dont-remove-all.md) - Keep gentle animation for reduced motion - [`polish-blur-bridge`](references/polish-blur-bridge.md) - Use blur to bridge animation states - [`polish-clip-path-tabs`](references/polish-clip-path-tabs.md) - Use clip-path for tab transitions - [`polish-toast-stacking`](references/polish-toast-stacking.md) - Implement toast stacking with scale and offset - [`polish-scroll-reveal`](references/polish-scroll-reveal.md) - Trigger scroll animations at appropriate threshold - [`polish-hover-gap-fill`](references/polish-hover-gap-fill.md) - Fill gaps between hoverable elements - [`polish-stagger-children`](references/polish-stagger-children.md) - Stagger child animations for orchestration ### 8. Tailwind v4 Utilities (MEDIUM) Express the principles above with proper Tailwind CSS v4 utilities. Applies only to Tailwind v4 projects; the raw-CSS and Framer Motion rules above remain the source of truth. - [`tw-ease-duration-defaults`](references/tw-ease-duration-defaults.md) - Set ease-out and a sub-300ms duration explicitly - [`tw-custom-easing-theme`](references/tw-custom-easing-theme.md) - Register custom easing curves as @theme tokens - [`tw-press-scale`](references/tw-press-scale.md) - Use active:scale-[0.97] for button press feedback - [`tw-asymmetric-timing`](references/tw-asymmetric-timing.md) - Split press and release timing with active:duration - [`tw-starting-enter`](references/tw-starting-enter.md) - Animate enter states with the starting: variant - [`tw-reduced-motion`](references/tw-reduced-motion.md) - Gate movement behind motion-safe / motion-reduce - [`tw-origin-aware`](references/tw-origin-aware.md) - Set transform-origin with origin-* utilities - [`tw-will-change`](references/tw-will-change.md) - Scope will-change-transform to the active gesture ## Key Values Reference | Value | Usage | |-------|-------| | `cubic-bezier(0.23, 1, 0.32, 1)` | Strong ease-out for UI interactions | | `cubic-bezier(0.77, 0, 0.175, 1)` | Strong ease-in-out for on-screen movement | | `cubic-bezier(0.32, 0.72, 0, 1)` | iOS-style drawer/sheet animation | | `scale(0.97)` | Button press feedback | | `scale(0.95)` | Minimum enter scale (never scale(0)) | | `200ms ease-out` | Standard UI transition | | `300ms` | Maximum duration for UI animations | | `500ms` | Drawer animation duration | | `0.11 px/ms` | Velocity threshold for momentum dismiss | | `100px` | Scroll-reveal viewport threshold | | `14px` | Toast stack offset | ## Duration by Element Pick duration by how often the element is seen and how much it moves. Keep UI animations under 300ms. | Element | Duration | |---------|----------| | Button press feedback | 100–160ms | | Tooltips, small popovers | 125–200ms | | Dropdowns, selects | 150–250ms | | Modals, drawers | 200–500ms | | Marketing / explanatory | Can be longer | ## Reference Files | File | Description | |------|-------------| | [references/_sections.md](references/_sections.md) | Category definitions and ordering | | [assets/templates/_template.md](assets/templates/_template.md) | Template for new rules | | [metadata.json](metadata.json) | Version and reference information |
© pproenca · MIT · pproenca/dot-skills