Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
Claude Skills Maintainers avatar

Auto Animate

  • 196 repo stars
  • Updated July 25, 2026
  • secondsky/claude-skills

Add smooth, zero-config animations to React components without managing animation state or library complexity.

About

AutoAnimate is a zero-config animation library for React that automatically animates layout changes, list transitions, accordion opens, and toast notifications without manual state management. developers use it to add polish to dynamic UI without wrestling with animation libraries like Framer Motion or React Spring. It matters because it removes animation friction—you get professional motion UX with a single hook, especially valuable when dealing with SSR or complex interaction patterns.

  • Zero-config animations for React lists and components
  • Auto-handles layout shifts, transitions, and SSR edge cases
  • Drop-in solution—minimal code changes needed

Auto Animate by the numbers

  • Data as of Jul 28, 2026 (Skillselion catalog sync)
/plugin marketplace add secondsky/claude-skills
/plugin install auto-animate@claude-skills

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars196
Last updatedJuly 25, 2026
Repositorysecondsky/claude-skills

What it does

Add smooth, zero-config animations to React components without managing animation state or library complexity.

README.md

AutoAnimate

Status: Production Ready ✅ Last Updated: 2025-11-07 Production Tested: Vite + React 19 + Tailwind v4 + Cloudflare Workers Static Assets


Auto-Trigger Keywords

Claude Code automatically discovers this skill when you mention:

Primary Keywords

  • auto-animate
  • @formkit/auto-animate
  • formkit
  • formkit auto-animate
  • zero-config animation
  • automatic animations
  • drop-in animation
  • lightweight animation library

Component Keywords

  • list animations
  • list transitions
  • animated list
  • accordion animation
  • accordion expand collapse
  • toast notifications
  • toast animation
  • form validation animation
  • error message animation
  • tab animations
  • modal fade in

Pattern Keywords

  • smooth list transitions
  • animate add remove
  • animate reorder
  • animate sort
  • animate filter results
  • fade in fade out
  • entry exit animations
  • dom change animations

Migration Keywords

  • framer motion alternative
  • motion alternative lightweight
  • replace framer motion
  • lightweight framer motion
  • animation library 2kb
  • animation library small bundle

Error-Based Keywords

  • "Cannot find module @formkit/auto-animate"
  • "auto-animate not working"
  • "auto-animate SSR error"
  • "window is not defined auto-animate"
  • "animations not triggering"
  • "list items not animating"
  • "conditional parent auto-animate"

Integration Keywords

  • vite react animation
  • vite animation library
  • cloudflare workers animation
  • nextjs animation library
  • ssr safe animation
  • react 19 animation
  • tailwind animation
  • shadcn animation

Use Case Keywords

  • animate todo list
  • animate shopping cart
  • animate search results
  • animate notification list
  • animate accordion sections
  • animate form errors
  • prefers-reduced-motion
  • accessible animations
  • a11y animations

What This Skill Does

Production-tested setup for AutoAnimate (@formkit/auto-animate) - a zero-config, drop-in animation library that automatically adds smooth transitions when DOM elements are added, removed, or moved. Only 3.28 KB gzipped with zero dependencies.

Core Capabilities

Zero-Config Animations - Add one ref, get smooth transitions for add/remove/reorder ✅ 10+ Documented Issues Prevented - SSR errors, flexbox conflicts, table rendering, key issues ✅ SSR-Safe Patterns - Works with Cloudflare Workers, Next.js, Remix, Nuxt ✅ Accessibility Built-In - Respects prefers-reduced-motion automatically ✅ 7 Production Templates - Lists, accordions, toasts, forms, filters, SSR-safe patterns ✅ 3 Reference Guides - AutoAnimate vs Motion decision guide, CSS conflicts, SSR patterns ✅ Automation Script - One-command setup with examples


Known Issues This Skill Prevents

Issue Why It Happens Source How Skill Fixes It
SSR/Next.js Import Errors AutoAnimate uses DOM APIs not available on server Issue #55 Dynamic imports with useAutoAnimateSafe hook
Conditional Parent Rendering Ref can't attach to non-existent element Issue #8 Pattern guide: parent always rendered, children conditional
Missing Unique Keys React can't track which items changed Official docs Template examples use key={item.id} pattern
Flexbox Width Issues flex-grow: 1 waits for surrounding content Official docs Use explicit width instead of flex-grow
Table Row Display Issues display: table-row conflicts with animations Issue #7 Apply to <tbody> or use div-based layouts
Jest Testing Errors Jest doesn't resolve ESM exports correctly Issue #29 Configure moduleNameMapper in jest.config.js
esbuild Compatibility ESM/CommonJS condition mismatch Issue #36 Configure esbuild ESM handling
CSS Position Side Effects Parent automatically gets position: relative Official docs Account for position change in CSS
Vue/Nuxt Registration Errors Plugin not registered correctly Issue #43 Proper plugin setup in Vue/Nuxt config
Angular ESM Issues Build fails with "ESM-only package" Issue #72 Configure ng-packagr for Angular Package Format

When to Use This Skill

✅ Use When:

  • Adding smooth animations to dynamic lists (todo lists, search results, shopping carts)
  • Building filter/sort interfaces that need visual feedback
  • Creating accordion components with expand/collapse animations
  • Implementing toast notifications with fade in/out
  • Animating form validation messages appearing/disappearing
  • Need simple transitions without writing animation code
  • Working with Vite + React + Tailwind v4
  • Deploying to Cloudflare Workers Static Assets
  • Want zero-config, automatic animations
  • Small bundle size is critical (3.28 KB vs 22 KB for Motion)
  • Encountering SSR errors with animation libraries
  • Need accessibility (prefers-reduced-motion) built-in

❌ Don't Use When:

  • Need gesture controls (drag, swipe) → Use motion-react skill
  • Need scroll-based animations → Use motion-react skill
  • Need spring physics → Use motion-react skill
  • Need SVG path morphing → Use motion-react skill
  • Need complex choreographed animations → Use motion-react skill
  • Need layout animations (shared element transitions) → Use motion-react skill

Quick Usage Example

# 1. Install AutoAnimate
pnpm add @formkit/auto-animate

# 2. Add to your component (3 lines!)
import { useAutoAnimate } from "@formkit/auto-animate/react";

const [parent] = useAutoAnimate(); // Get ref

return (
  <ul ref={parent}> {/* Attach to parent */}
    {items.map(item => <li key={item.id}>{item.text}</li>)}
  </ul>
);

# 3. For Cloudflare Workers/Next.js (SSR-safe)
# See templates/vite-ssr-safe.tsx for SSR-safe pattern

Result: Smooth animations on add, remove, and reorder operations with zero configuration.

Full instructions: See SKILL.md


Package Versions (Verified 2025-11-07)

Package Version Status
@formkit/auto-animate 0.9.0 ✅ Latest stable
react 19.2.0 ✅ Latest stable
vite 6.0.0 ✅ Latest stable

Dependencies

Prerequisites: None (works with any React setup)

Integrates With:

  • tailwind-v4-shadcn (styling)
  • cloudflare-worker-base (deployment)
  • nextjs (if using Next.js)
  • motion-react (complementary, not competing)

File Structure

auto-animate/
├── SKILL.md                       # Complete documentation (~395 lines)
├── README.md                      # This file (auto-trigger keywords)
├── templates/                     # 7 production-ready examples
│   ├── react-basic.tsx            # Simple list with add/remove/shuffle
│   ├── react-typescript.tsx       # Typed setup with custom config
│   ├── filter-sort-list.tsx       # Animated filtering and sorting
│   ├── accordion.tsx              # Expandable sections
│   ├── toast-notifications.tsx    # Fade in/out messages
│   ├── form-validation.tsx        # Error messages animation
│   └── vite-ssr-safe.tsx          # Cloudflare Workers/SSR pattern
├── references/                    # 3 comprehensive guides
│   ├── auto-animate-vs-motion.md  # Decision guide: when to use which library
│   ├── css-conflicts.md           # Flexbox, table, and position gotchas
│   └── ssr-patterns.md            # Next.js, Nuxt, Workers workarounds
└── scripts/                       # Automated setup
    └── init-auto-animate.sh       # One-command installation + examples

Official Documentation


Related Skills

  • motion-react - For complex animations (gestures, scroll, spring physics)
  • tailwind-v4-shadcn - Styling integration
  • cloudflare-worker-base - Deployment with SSR-safe patterns
  • react-hook-form-zod - Form validation with animated error messages

AutoAnimate vs Motion (Quick Decision)

Use AutoAnimate for:

  • ✅ Lists, accordions, toasts, forms (90% of UI animations)
  • ✅ Zero configuration needed
  • ✅ 3.28 KB bundle size

Use Motion for:

  • ✅ Hero sections, landing pages
  • ✅ Gesture controls (drag, swipe)
  • ✅ Scroll-based animations
  • ✅ Spring physics

Rule of Thumb: Use AutoAnimate for 90% of cases, Motion for hero/interactive animations.

See references/auto-animate-vs-motion.md for detailed comparison.


Contributing

Found an issue or have a suggestion?


License

MIT License - See main repo LICENSE file


Production Tested: ✅ Vite + React 19 + Tailwind v4 + Cloudflare Workers Static Assets Token Savings: ~62% Error Prevention: 100% (all 10+ documented errors prevented) Bundle Size: 3.28 KB gzipped (6.7x smaller than Motion) Accessibility: Built-in prefers-reduced-motion support Ready to use! See SKILL.md for complete setup.

Related skills

Frontend Developmentfrontendintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.