[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G6BHBA72DTH0QNNFFFKVK6":3,"skill-same:01M6G6BHBA72DTH0QNNFFFKVK6":141},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":51,"install":52,"resources":64},"01M6G6BHBA72DTH0QNNFFFKVK6","auto-animate",null,"Zero-config animations for React, Vue, Solid, Svelte, Preact with @formkit\u002Fauto-animate (3.28kb). Prevents 15 documented errors including React 19 StrictMode bugs, SSR imports, conditional parents, viewport issues, drag & drop conflicts, and CSS transform bugs.\n\nUse when: animating lists\u002Faccordions\u002Ftoasts, troubleshooting SSR animation errors, React 19 StrictMode issues, or need accessible drop-in transitions with auto prefers-reduced-motion.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"auto animate","animate","auto","motion","true","errors","react 19","drag","transform","svelte","drop","conflicts","css","Animation","ZeRO","vue","issues","ssr","config","react","2026-11-10 10:12:30",false,"---\nname: auto-animate\ndescription: |\n  Zero-config animations for React, Vue, Solid, Svelte, Preact with @formkit\u002Fauto-animate (3.28kb). Prevents 15 documented errors including React 19 StrictMode bugs, SSR imports, conditional parents, viewport issues, drag & drop conflicts, and CSS transform bugs.\n\n  Use when: animating lists\u002Faccordions\u002Ftoasts, troubleshooting SSR animation errors, React 19 StrictMode issues, or need accessible drop-in transitions with auto prefers-reduced-motion.\nuser-invocable: true\n---\n\n# AutoAnimate - Error Prevention Guide\n\n**Package**: @formkit\u002Fauto-animate@0.9.0 (current)\n**Frameworks**: React, Vue, Solid, Svelte, Preact\n**Last Updated**: 2026-01-21\n\n---\n\n## SSR-Safe Pattern (Critical for Cloudflare Workers\u002FNext.js)\n\n```tsx\n\u002F\u002F Use client-only import to prevent SSR errors\nimport { useState, useEffect } from \"react\";\n\nexport function useAutoAnimateSafe\u003CT extends HTMLElement>() {\n  const [parent, setParent] = useState\u003CT | null>(null);\n\n  useEffect(() => {\n    if (typeof window !== \"undefined\" && parent) {\n      import(\"@formkit\u002Fauto-animate\").then(({ default: autoAnimate }) => {\n        autoAnimate(parent);\n      });\n    }\n  }, [parent]);\n\n  return [parent, setParent] as const;\n}\n```\n\n**Why this matters**: Prevents Issue #1 (SSR\u002FNext.js import errors). AutoAnimate uses DOM APIs not available on server.\n\n---\n\n## Known Issues Prevention (15 Documented Errors)\n\nThis skill prevents **15** documented issues:\n\n### Issue #1: SSR\u002FNext.js Import Errors\n**Error**: \"Can't import the named export 'useEffect' from non EcmaScript module\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F55\n**Why It Happens**: AutoAnimate uses DOM APIs not available on server\n**Prevention**: Use dynamic imports (see `templates\u002Fvite-ssr-safe.tsx`)\n\n### Issue #2: Conditional Parent Rendering\n**Error**: Animations don't work when parent is conditional\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F8\n**Why It Happens**: Ref can't attach to non-existent element\n**Prevention**:\n\n**React Pattern**:\n```tsx\n\u002F\u002F ❌ Wrong\n{showList && \u003Cul ref={parent}>...\u003C\u002Ful>}\n\n\u002F\u002F ✅ Correct\n\u003Cul ref={parent}>{showList && items.map(...)}\u003C\u002Ful>\n```\n\n**Vue.js Pattern**:\n```vue\n\u003C!-- ❌ Wrong - parent conditional -->\n\u003Cul v-if=\"showList\" ref=\"parent\">\n  \u003Cli v-for=\"item in items\" :key=\"item.id\">{{ item.text }}\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003C!-- ✅ Correct - children conditional -->\n\u003Cul ref=\"parent\">\n  \u003Cli v-if=\"showList\" v-for=\"item in items\" :key=\"item.id\">\n    {{ item.text }}\n  \u003C\u002Fli>\n\u003C\u002Ful>\n```\n\n**Source**: React [Issue #8](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F8), Vue [Issue #193](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F193)\n\n### Issue #3: Missing Unique Keys\n**Error**: Items don't animate correctly or flash\n**Source**: Official docs\n**Why It Happens**: React can't track which items changed\n**Prevention**: Always use unique, stable keys (`key={item.id}`)\n\n### Issue #4: Flexbox Width and Shaking Issues\n**Error**: Elements snap to width instead of animating smoothly, or container shakes on remove\n**Source**: Official docs, [Issue #212](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F212)\n**Why It Happens**: `flex-grow: 1` waits for surrounding content, causing timing issues\n**Prevention**: Use explicit width instead of flex-grow for animated elements\n\n```tsx\n\u002F\u002F ❌ Wrong - causes shaking\n\u003Cul ref={parent} style={{ display: 'flex' }}>\n  {items.map(item => (\n    \u003Cli key={item.id} style={{ flex: '1 1 auto' }}>{item.text}\u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n\n\u002F\u002F ✅ Correct - fixed sizes\n\u003Cul ref={parent} style={{ display: 'flex', gap: '1rem' }}>\n  {items.map(item => (\n    \u003Cli\n      key={item.id}\n      style={{ minWidth: '200px', maxWidth: '200px' }}\n    >\n      {item.text}\n    \u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n```\n\n**Maintainer Note**: justin-schroeder confirmed fixed sizes are required for flex containers\n\n### Issue #5: Table Row Display Issues\n**Error**: Table structure breaks when removing rows\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F7\n**Why It Happens**: Display: table-row conflicts with animations\n**Prevention**: Apply to `\u003Ctbody>` instead of individual rows, or use div-based layouts\n\n### Issue #6: Jest Testing Errors\n**Error**: \"Cannot find module '@formkit\u002Fauto-animate\u002Freact'\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F29\n**Why It Happens**: Jest doesn't resolve ESM exports correctly\n**Prevention**: Configure `moduleNameMapper` in jest.config.js\n\n### Issue #7: esbuild Compatibility\n**Error**: \"Path '.' not exported by package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F36\n**Why It Happens**: ESM\u002FCommonJS condition mismatch\n**Prevention**: Configure esbuild to handle ESM modules properly\n\n### Issue #8: CSS Position Side Effects\n**Error**: Layout breaks after adding AutoAnimate\n**Source**: Official docs\n**Why It Happens**: Parent automatically gets `position: relative`\n**Prevention**: Account for position change in CSS or set explicitly\n\n### Issue #9: Vue\u002FNuxt Registration Errors\n**Error**: \"Failed to resolve directive: auto-animate\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F43\n**Why It Happens**: Plugin not registered correctly\n**Prevention**: Proper plugin setup in Vue\u002FNuxt config (see references\u002F)\n\n**Nuxt 3 Note**: Requires v0.8.2+ (April 2024). Earlier versions have ESM import issues fixed by Daniel Roe. See [Issue #199](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F199)\n\n### Issue #10: Angular ESM Issues\n**Error**: Build fails with \"ESM-only package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F72\n**Why It Happens**: CommonJS build environment\n**Prevention**: Configure ng-packagr for Angular Package Format\n\n### Issue #11: React 19 StrictMode Double-Call Bug\n**Error**: Child animations don't work in React 19 StrictMode\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F232\n**Why It Happens**: StrictMode calls useEffect twice, triggering autoAnimate initialization twice\n**Prevention**: Use ref to track initialization\n\n```tsx\n\u002F\u002F ❌ Wrong - breaks in StrictMode\nconst [parent] = useAutoAnimate();\n\n\u002F\u002F ✅ Correct - prevents double initialization\nconst [parent] = useAutoAnimate();\nconst initialized = useRef(false);\n\nuseEffect(() => {\n  if (initialized.current) return;\n  initialized.current = true;\n}, []);\n```\n\n**Note**: React 19 enables StrictMode by default in development. This affects all React 19+ projects.\n\n### Issue #12: Broken Animation Outside Viewport\n**Error**: Animations broken when list is outside viewport\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F222\n**Why It Happens**: Chrome may not run Animation API for off-screen elements\n**Prevention**: Ensure parent is visible before applying autoAnimate\n\n```tsx\nconst isInViewport = (element) => {\n  const rect = element.getBoundingClientRect();\n  return rect.top >= 0 && rect.bottom \u003C= window.innerHeight;\n};\n\nuseEffect(() => {\n  if (parent.current && isInViewport(parent.current)) {\n    autoAnimate(parent.current);\n  }\n}, [parent]);\n```\n\n### Issue #13: Deleted Elements Overlay Existing Content\n**Error**: Removed items overlay other items during fade out\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F231\n**Why It Happens**: Exit animation maintains z-index, covering active content\n**Prevention**: Add explicit z-index handling\n\n```tsx\n\u002F\u002F CSS workaround\n\u003Cstyle>{`\n  [data-auto-animate-target] {\n    z-index: -1 !important;\n  }\n`}\u003C\u002Fstyle>\n```\n\n### Issue #14: Cannot Disable During Drag & Drop\n**Error**: Calling enable(false) doesn't prevent animations during drag\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F215\n**Why It Happens**: Disable doesn't work reliably mid-drag\n**Prevention**: Conditionally remove ref during drag\n\n```tsx\nconst [isDragging, setIsDragging] = useState(false);\nconst [parent] = useAutoAnimate();\n\nreturn (\n  \u003Cul ref={isDragging ? null : parent}>\n    {\u002F* items *\u002F}\n  \u003C\u002Ful>\n);\n```\n\n### Issue #15: CSS Transform Parent Position Bug\n**Error**: Items animate from wrong position after parent transform\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F227\n**Why It Happens**: Items remember original position before transform\n**Prevention**: Delay autoAnimate until transform completes\n\n```tsx\nuseEffect(() => {\n  if (showList && parent.current) {\n    setTimeout(() => {\n      autoAnimate(parent.current);\n    }, 300); \u002F\u002F Match CSS transition duration\n  }\n}, [showList]);\n```\n\n---\n\n## Critical Rules (Error Prevention)\n\n### Always Do\n\n✅ **Use unique, stable keys** - `key={item.id}` not `key={index}`\n✅ **Keep parent in DOM** - Parent ref element always rendered\n✅ **Client-only for SSR** - Dynamic import for server environments\n✅ **Respect accessibility** - Keep `disrespectUserMotionPreference: false`\n✅ **Test with motion disabled** - Verify UI works without animations\n✅ **Use explicit width** - Avoid flex-grow on animated elements\n✅ **Apply to tbody for tables** - Not individual rows\n\n### Never Do\n\n❌ **Conditional parent** - `{show && \u003Cul ref={parent}>}`\n❌ **Index as key** - `key={index}` breaks animations\n❌ **Ignore SSR** - Will break in Cloudflare Workers\u002FNext.js\n❌ **Force animations** - `disrespectUserMotionPreference: true` breaks accessibility\n❌ **Animate tables directly** - Use tbody or div-based layout\n❌ **Skip unique keys** - Required for proper animation\n❌ **Complex animations** - Use Motion instead\n\n**Note**: AutoAnimate respects `prefers-reduced-motion` automatically (never disable this).\n\n---\n\n## Community Tips (Community-Sourced)\n\n> **Note**: These tips come from community discussions. Verify against your version.\n\n### Tip: Prevent Test Freezing with Mocked Package\n\n**Source**: [Issue #230](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F230) | **Confidence**: MEDIUM\n**Applies to**: v0.8.2+\n\nTests may freeze for ~10 seconds when package is mocked. Add ResizeObserver mock:\n\n```typescript\n\u002F\u002F jest.setup.js\nglobal.ResizeObserver = jest.fn().mockImplementation(() => ({\n  observe: jest.fn(),\n  unobserve: jest.fn(),\n  disconnect: jest.fn(),\n}));\n\n\u002F\u002F __mocks__\u002F@formkit\u002Fauto-animate.js\nconst autoAnimate = jest.fn(() => () => {});\nconst useAutoAnimate = jest.fn(() => [null, jest.fn(), jest.fn()]);\nmodule.exports = { default: autoAnimate, useAutoAnimate };\n```\n\n### Tip: Memory Leak Prevention\n\n**Source**: [Issue #180](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F180) | **Confidence**: LOW\n**Applies to**: All versions\n\nFor long-lived SPAs, ensure proper cleanup:\n\n```tsx\nuseEffect(() => {\n  const cleanup = autoAnimate(parent.current);\n  return () => cleanup && cleanup();\n}, []);\n\n\u002F\u002F useAutoAnimate hook handles cleanup automatically\nconst [parent] = useAutoAnimate(); \u002F\u002F Preferred\n```\n\n---\n\n## Package Versions\n\n**Latest**: @formkit\u002Fauto-animate@0.9.0 (Sept 5, 2025)\n\n**Recent Releases**:\n- v0.9.0 (Sept 5, 2025) - Current stable\n- v0.8.2 (April 10, 2024) - Fixed Nuxt 3 ESM imports, ResizeObserver guard\n\n```json\n{\n  \"dependencies\": {\n    \"@formkit\u002Fauto-animate\": \"^0.9.0\"\n  }\n}\n```\n\n**Framework Compatibility**: React 18+, Vue 3+, Solid, Svelte, Preact\n\n**Important**: For Nuxt 3 users, v0.8.2+ is required. Earlier versions have ESM import issues\n\n---\n\n## Official Documentation\n\n- **Official Site**: https:\u002F\u002Fauto-animate.formkit.com\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\n- **npm**: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@formkit\u002Fauto-animate\n- **React Docs**: https:\u002F\u002Fauto-animate.formkit.com\u002Freact\n\n---\n\n## Templates & References\n\nSee bundled resources:\n- `templates\u002F` - Copy-paste examples (SSR-safe, accordion, toast, forms)\n- `references\u002F` - CSS conflicts, SSR patterns, library comparisons\n","# AutoAnimate - Error Prevention Guide\n\n**Package**: @formkit\u002Fauto-animate@0.9.0 (current)\n**Frameworks**: React, Vue, Solid, Svelte, Preact\n**Last Updated**: 2026-01-21\n\n---\n\n## SSR-Safe Pattern (Critical for Cloudflare Workers\u002FNext.js)\n\n```tsx\n\u002F\u002F Use client-only import to prevent SSR errors\nimport { useState, useEffect } from \"react\";\n\nexport function useAutoAnimateSafe\u003CT extends HTMLElement>() {\n  const [parent, setParent] = useState\u003CT | null>(null);\n\n  useEffect(() => {\n    if (typeof window !== \"undefined\" && parent) {\n      import(\"@formkit\u002Fauto-animate\").then(({ default: autoAnimate }) => {\n        autoAnimate(parent);\n      });\n    }\n  }, [parent]);\n\n  return [parent, setParent] as const;\n}\n```\n\n**Why this matters**: Prevents Issue #1 (SSR\u002FNext.js import errors). AutoAnimate uses DOM APIs not available on server.\n\n---\n\n## Known Issues Prevention (15 Documented Errors)\n\nThis skill prevents **15** documented issues:\n\n### Issue #1: SSR\u002FNext.js Import Errors\n**Error**: \"Can't import the named export 'useEffect' from non EcmaScript module\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F55\n**Why It Happens**: AutoAnimate uses DOM APIs not available on server\n**Prevention**: Use dynamic imports (see `templates\u002Fvite-ssr-safe.tsx`)\n\n### Issue #2: Conditional Parent Rendering\n**Error**: Animations don't work when parent is conditional\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F8\n**Why It Happens**: Ref can't attach to non-existent element\n**Prevention**:\n\n**React Pattern**:\n```tsx\n\u002F\u002F ❌ Wrong\n{showList && \u003Cul ref={parent}>...\u003C\u002Ful>}\n\n\u002F\u002F ✅ Correct\n\u003Cul ref={parent}>{showList && items.map(...)}\u003C\u002Ful>\n```\n\n**Vue.js Pattern**:\n```vue\n\u003C!-- ❌ Wrong - parent conditional -->\n\u003Cul v-if=\"showList\" ref=\"parent\">\n  \u003Cli v-for=\"item in items\" :key=\"item.id\">{{ item.text }}\u003C\u002Fli>\n\u003C\u002Ful>\n\n\u003C!-- ✅ Correct - children conditional -->\n\u003Cul ref=\"parent\">\n  \u003Cli v-if=\"showList\" v-for=\"item in items\" :key=\"item.id\">\n    {{ item.text }}\n  \u003C\u002Fli>\n\u003C\u002Ful>\n```\n\n**Source**: React [Issue #8](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F8), Vue [Issue #193](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F193)\n\n### Issue #3: Missing Unique Keys\n**Error**: Items don't animate correctly or flash\n**Source**: Official docs\n**Why It Happens**: React can't track which items changed\n**Prevention**: Always use unique, stable keys (`key={item.id}`)\n\n### Issue #4: Flexbox Width and Shaking Issues\n**Error**: Elements snap to width instead of animating smoothly, or container shakes on remove\n**Source**: Official docs, [Issue #212](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F212)\n**Why It Happens**: `flex-grow: 1` waits for surrounding content, causing timing issues\n**Prevention**: Use explicit width instead of flex-grow for animated elements\n\n```tsx\n\u002F\u002F ❌ Wrong - causes shaking\n\u003Cul ref={parent} style={{ display: 'flex' }}>\n  {items.map(item => (\n    \u003Cli key={item.id} style={{ flex: '1 1 auto' }}>{item.text}\u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n\n\u002F\u002F ✅ Correct - fixed sizes\n\u003Cul ref={parent} style={{ display: 'flex', gap: '1rem' }}>\n  {items.map(item => (\n    \u003Cli\n      key={item.id}\n      style={{ minWidth: '200px', maxWidth: '200px' }}\n    >\n      {item.text}\n    \u003C\u002Fli>\n  ))}\n\u003C\u002Ful>\n```\n\n**Maintainer Note**: justin-schroeder confirmed fixed sizes are required for flex containers\n\n### Issue #5: Table Row Display Issues\n**Error**: Table structure breaks when removing rows\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F7\n**Why It Happens**: Display: table-row conflicts with animations\n**Prevention**: Apply to `\u003Ctbody>` instead of individual rows, or use div-based layouts\n\n### Issue #6: Jest Testing Errors\n**Error**: \"Cannot find module '@formkit\u002Fauto-animate\u002Freact'\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F29\n**Why It Happens**: Jest doesn't resolve ESM exports correctly\n**Prevention**: Configure `moduleNameMapper` in jest.config.js\n\n### Issue #7: esbuild Compatibility\n**Error**: \"Path '.' not exported by package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F36\n**Why It Happens**: ESM\u002FCommonJS condition mismatch\n**Prevention**: Configure esbuild to handle ESM modules properly\n\n### Issue #8: CSS Position Side Effects\n**Error**: Layout breaks after adding AutoAnimate\n**Source**: Official docs\n**Why It Happens**: Parent automatically gets `position: relative`\n**Prevention**: Account for position change in CSS or set explicitly\n\n### Issue #9: Vue\u002FNuxt Registration Errors\n**Error**: \"Failed to resolve directive: auto-animate\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F43\n**Why It Happens**: Plugin not registered correctly\n**Prevention**: Proper plugin setup in Vue\u002FNuxt config (see references\u002F)\n\n**Nuxt 3 Note**: Requires v0.8.2+ (April 2024). Earlier versions have ESM import issues fixed by Daniel Roe. See [Issue #199](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F199)\n\n### Issue #10: Angular ESM Issues\n**Error**: Build fails with \"ESM-only package\"\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F72\n**Why It Happens**: CommonJS build environment\n**Prevention**: Configure ng-packagr for Angular Package Format\n\n### Issue #11: React 19 StrictMode Double-Call Bug\n**Error**: Child animations don't work in React 19 StrictMode\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F232\n**Why It Happens**: StrictMode calls useEffect twice, triggering autoAnimate initialization twice\n**Prevention**: Use ref to track initialization\n\n```tsx\n\u002F\u002F ❌ Wrong - breaks in StrictMode\nconst [parent] = useAutoAnimate();\n\n\u002F\u002F ✅ Correct - prevents double initialization\nconst [parent] = useAutoAnimate();\nconst initialized = useRef(false);\n\nuseEffect(() => {\n  if (initialized.current) return;\n  initialized.current = true;\n}, []);\n```\n\n**Note**: React 19 enables StrictMode by default in development. This affects all React 19+ projects.\n\n### Issue #12: Broken Animation Outside Viewport\n**Error**: Animations broken when list is outside viewport\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F222\n**Why It Happens**: Chrome may not run Animation API for off-screen elements\n**Prevention**: Ensure parent is visible before applying autoAnimate\n\n```tsx\nconst isInViewport = (element) => {\n  const rect = element.getBoundingClientRect();\n  return rect.top >= 0 && rect.bottom \u003C= window.innerHeight;\n};\n\nuseEffect(() => {\n  if (parent.current && isInViewport(parent.current)) {\n    autoAnimate(parent.current);\n  }\n}, [parent]);\n```\n\n### Issue #13: Deleted Elements Overlay Existing Content\n**Error**: Removed items overlay other items during fade out\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F231\n**Why It Happens**: Exit animation maintains z-index, covering active content\n**Prevention**: Add explicit z-index handling\n\n```tsx\n\u002F\u002F CSS workaround\n\u003Cstyle>{`\n  [data-auto-animate-target] {\n    z-index: -1 !important;\n  }\n`}\u003C\u002Fstyle>\n```\n\n### Issue #14: Cannot Disable During Drag & Drop\n**Error**: Calling enable(false) doesn't prevent animations during drag\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F215\n**Why It Happens**: Disable doesn't work reliably mid-drag\n**Prevention**: Conditionally remove ref during drag\n\n```tsx\nconst [isDragging, setIsDragging] = useState(false);\nconst [parent] = useAutoAnimate();\n\nreturn (\n  \u003Cul ref={isDragging ? null : parent}>\n    {\u002F* items *\u002F}\n  \u003C\u002Ful>\n);\n```\n\n### Issue #15: CSS Transform Parent Position Bug\n**Error**: Items animate from wrong position after parent transform\n**Source**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F227\n**Why It Happens**: Items remember original position before transform\n**Prevention**: Delay autoAnimate until transform completes\n\n```tsx\nuseEffect(() => {\n  if (showList && parent.current) {\n    setTimeout(() => {\n      autoAnimate(parent.current);\n    }, 300); \u002F\u002F Match CSS transition duration\n  }\n}, [showList]);\n```\n\n---\n\n## Critical Rules (Error Prevention)\n\n### Always Do\n\n✅ **Use unique, stable keys** - `key={item.id}` not `key={index}`\n✅ **Keep parent in DOM** - Parent ref element always rendered\n✅ **Client-only for SSR** - Dynamic import for server environments\n✅ **Respect accessibility** - Keep `disrespectUserMotionPreference: false`\n✅ **Test with motion disabled** - Verify UI works without animations\n✅ **Use explicit width** - Avoid flex-grow on animated elements\n✅ **Apply to tbody for tables** - Not individual rows\n\n### Never Do\n\n❌ **Conditional parent** - `{show && \u003Cul ref={parent}>}`\n❌ **Index as key** - `key={index}` breaks animations\n❌ **Ignore SSR** - Will break in Cloudflare Workers\u002FNext.js\n❌ **Force animations** - `disrespectUserMotionPreference: true` breaks accessibility\n❌ **Animate tables directly** - Use tbody or div-based layout\n❌ **Skip unique keys** - Required for proper animation\n❌ **Complex animations** - Use Motion instead\n\n**Note**: AutoAnimate respects `prefers-reduced-motion` automatically (never disable this).\n\n---\n\n## Community Tips (Community-Sourced)\n\n> **Note**: These tips come from community discussions. Verify against your version.\n\n### Tip: Prevent Test Freezing with Mocked Package\n\n**Source**: [Issue #230](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F230) | **Confidence**: MEDIUM\n**Applies to**: v0.8.2+\n\nTests may freeze for ~10 seconds when package is mocked. Add ResizeObserver mock:\n\n```typescript\n\u002F\u002F jest.setup.js\nglobal.ResizeObserver = jest.fn().mockImplementation(() => ({\n  observe: jest.fn(),\n  unobserve: jest.fn(),\n  disconnect: jest.fn(),\n}));\n\n\u002F\u002F __mocks__\u002F@formkit\u002Fauto-animate.js\nconst autoAnimate = jest.fn(() => () => {});\nconst useAutoAnimate = jest.fn(() => [null, jest.fn(), jest.fn()]);\nmodule.exports = { default: autoAnimate, useAutoAnimate };\n```\n\n### Tip: Memory Leak Prevention\n\n**Source**: [Issue #180](https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\u002Fissues\u002F180) | **Confidence**: LOW\n**Applies to**: All versions\n\nFor long-lived SPAs, ensure proper cleanup:\n\n```tsx\nuseEffect(() => {\n  const cleanup = autoAnimate(parent.current);\n  return () => cleanup && cleanup();\n}, []);\n\n\u002F\u002F useAutoAnimate hook handles cleanup automatically\nconst [parent] = useAutoAnimate(); \u002F\u002F Preferred\n```\n\n---\n\n## Package Versions\n\n**Latest**: @formkit\u002Fauto-animate@0.9.0 (Sept 5, 2025)\n\n**Recent Releases**:\n- v0.9.0 (Sept 5, 2025) - Current stable\n- v0.8.2 (April 10, 2024) - Fixed Nuxt 3 ESM imports, ResizeObserver guard\n\n```json\n{\n  \"dependencies\": {\n    \"@formkit\u002Fauto-animate\": \"^0.9.0\"\n  }\n}\n```\n\n**Framework Compatibility**: React 18+, Vue 3+, Solid, Svelte, Preact\n\n**Important**: For Nuxt 3 users, v0.8.2+ is required. Earlier versions have ESM import issues\n\n---\n\n## Official Documentation\n\n- **Official Site**: https:\u002F\u002Fauto-animate.formkit.com\n- **GitHub**: https:\u002F\u002Fgithub.com\u002Fformkit\u002Fauto-animate\n- **npm**: https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@formkit\u002Fauto-animate\n- **React Docs**: https:\u002F\u002Fauto-animate.formkit.com\u002Freact\n\n---\n\n## Templates & References\n\nSee bundled resources:\n- `templates\u002F` - Copy-paste examples (SSR-safe, accordion, toast, forms)\n- `references\u002F` - CSS conflicts, SSR patterns, library comparisons\n",{"name":5,"description":43,"user-invocable":44},"Zero-config animations for React, Vue, Solid, Svelte, Preact with @formkit\u002Fauto-animate (3.28kb). Prevents 15 documented errors including React 19 StrictMode bugs, SSR imports, conditional parents, viewport issues, drag & drop conflicts, and CSS transform bugs.\n\nUse when: animating lists\u002Faccordions\u002Ftoasts, troubleshooting SSR animation errors, React 19 StrictMode issues, or need accessible drop-in transitions with auto prefers-reduced-motion.\n",true,"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fveeramanikandanr48\u002Fauto-animate",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":44},[54,57,60],{"tool":55,"command":56},"npx","npx skills add kbarbel640-del\u002Fskills --skill auto-animate",{"tool":58,"command":59},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill auto-animate",{"tool":61,"command":62},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill auto-animate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002FSKILL.md",[65,71,75,81,85,89,93,97,101,107,111,117,121,125,129,133,137],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"_meta.json","REFERENCE","参考文档",288,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002F_meta.json",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},".claude-plugin\u002Fplugin.json",710,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002F.claude-plugin\u002Fplugin.json",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"assets\u002Fexample-template.txt","ASSET","资产文件",416,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Fassets\u002Fexample-template.txt",{"path":82,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":83,"sourceHtmlUrl":84},"README.md",10099,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002FREADME.md",{"path":86,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fauto-animate-vs-motion.md",10084,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Freferences\u002Fauto-animate-vs-motion.md",{"path":90,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":91,"sourceHtmlUrl":92},"references\u002Fcss-conflicts.md",13308,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Freferences\u002Fcss-conflicts.md",{"path":94,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":95,"sourceHtmlUrl":96},"references\u002Fexample-reference.md",760,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Freferences\u002Fexample-reference.md",{"path":98,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":99,"sourceHtmlUrl":100},"references\u002Fssr-patterns.md",12731,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Freferences\u002Fssr-patterns.md",{"path":102,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":105,"sourceHtmlUrl":106},"scripts\u002Fexample-script.sh","SCRIPT","脚本",302,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Fscripts\u002Fexample-script.sh",{"path":108,"resourceType":103,"resourceTypeDesc":104,"sizeBytes":109,"sourceHtmlUrl":110},"scripts\u002Finit-auto-animate.sh",8719,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Fscripts\u002Finit-auto-animate.sh",{"path":112,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":115,"sourceHtmlUrl":116},"templates\u002Faccordion.tsx","OTHER","其他",2803,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Faccordion.tsx",{"path":118,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":119,"sourceHtmlUrl":120},"templates\u002Ffilter-sort-list.tsx",3263,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Ffilter-sort-list.tsx",{"path":122,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":123,"sourceHtmlUrl":124},"templates\u002Fform-validation.tsx",4275,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Fform-validation.tsx",{"path":126,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":127,"sourceHtmlUrl":128},"templates\u002Freact-basic.tsx",2876,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Freact-basic.tsx",{"path":130,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":131,"sourceHtmlUrl":132},"templates\u002Freact-typescript.tsx",4825,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Freact-typescript.tsx",{"path":134,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":135,"sourceHtmlUrl":136},"templates\u002Ftoast-notifications.tsx",1898,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Ftoast-notifications.tsx",{"path":138,"resourceType":113,"resourceTypeDesc":114,"sizeBytes":139,"sourceHtmlUrl":140},"templates\u002Fvite-ssr-safe.tsx",4346,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fveeramanikandanr48\u002Fauto-animate\u002Ftemplates\u002Fvite-ssr-safe.tsx",[142,168,192,210,215,234],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":38},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[175,151,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,156,191],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":38},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[199,200,201,202,203,204,205,152,206,189,191,207,151,208,209],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":211,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":212,"categories":213,"keywords":214,"publishedAt":38},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[202,201,200,199,209,204,205,152,203,189,191,206,207,151,208],{"skillNo":216,"name":217,"nameZh":6,"description":218,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":219,"categories":220,"keywords":221,"publishedAt":38},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[222,223,224,225,226,227,228,229,230,22,231,232,233],"git","summary","git summary","commits","repository","win32","status","linux","contributors","quick","get","branches",{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":240,"publishedAt":38},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[241,242,243,244,152,245,246,45,247,207,248,249,250,251,252,165,253,254,255],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]