[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M798ZAKHC80KAJFWW54CPQEZ":3,"skill-same:01M798ZAKHC80KAJFWW54CPQEZ":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M798ZAKHC80KAJFWW54CPQEZ","framer-motion-animator",null,"Creates smooth animations and micro-interactions using Framer Motion including page transitions, gestures, scroll-based animations, and orchestrated sequences. Use when users request \"add animation\", \"framer motion\", \"page transition\", \"animate component\", or \"micro-interactions\".","selivestru\u002Fsift-rate-v3","selivestru","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F90108576?v=4","01M798YCK4YECAE1G6WQPPTZDS","Eugene","01M798YCKRQX69B4526P3BTDBC",0,"MIT","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fframer-motion-animator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: framer-motion-animator\ndescription: Creates smooth animations and micro-interactions using Framer Motion including page transitions, gestures, scroll-based animations, and orchestrated sequences. Use when users request \"add animation\", \"framer motion\", \"page transition\", \"animate component\", or \"micro-interactions\".\n---\n\n# Framer Motion Animator\n\nBuild delightful animations and interactions with Framer Motion's declarative API.\n\n## Core Workflow\n\n1. **Identify animation needs**: Entrance, exit, hover, gestures\n2. **Choose animation type**: Simple, variants, gestures, layout\n3. **Define motion values**: Opacity, scale, position, rotation\n4. **Add transitions**: Duration, easing, spring physics\n5. **Orchestrate sequences**: Stagger, delay, parent-child\n6. **Optimize performance**: GPU-accelerated properties\n\n## Installation\n\n```bash\nnpm install framer-motion\n```\n\n## Basic Animations\n\n### Simple Animation\n\n```tsx\nimport { motion } from 'framer-motion';\n\n\u002F\u002F Animate on mount\nexport function FadeIn({ children }: { children: React.ReactNode }) {\n  return (\n    \u003Cmotion.div\n      initial={{ opacity: 0, y: 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={{ duration: 0.5 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n\n\u002F\u002F Animate on hover\nexport function ScaleOnHover({ children }: { children: React.ReactNode }) {\n  return (\n    \u003Cmotion.div\n      whileHover={{ scale: 1.05 }}\n      whileTap={{ scale: 0.95 }}\n      transition={{ type: 'spring', stiffness: 400, damping: 17 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### Exit Animations with AnimatePresence\n\n```tsx\nimport { motion, AnimatePresence } from 'framer-motion';\n\nexport function Modal({ isOpen, onClose, children }: ModalProps) {\n  return (\n    \u003CAnimatePresence>\n      {isOpen && (\n        \u003C>\n          {\u002F* Backdrop *\u002F}\n          \u003Cmotion.div\n            initial={{ opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={{ opacity: 0 }}\n            onClick={onClose}\n            className=\"fixed inset-0 bg-black\u002F50 z-40\"\n          \u002F>\n\n          {\u002F* Modal *\u002F}\n          \u003Cmotion.div\n            initial={{ opacity: 0, scale: 0.95, y: 20 }}\n            animate={{ opacity: 1, scale: 1, y: 0 }}\n            exit={{ opacity: 0, scale: 0.95, y: 20 }}\n            transition={{ type: 'spring', damping: 25, stiffness: 300 }}\n            className=\"fixed inset-0 z-50 flex items-center justify-center\"\n          >\n            \u003Cdiv className=\"bg-white rounded-xl p-6 max-w-md w-full\">\n              {children}\n            \u003C\u002Fdiv>\n          \u003C\u002Fmotion.div>\n        \u003C\u002F>\n      )}\n    \u003C\u002FAnimatePresence>\n  );\n}\n```\n\n## Variants Pattern\n\n### Staggered Children\n\n```tsx\nconst containerVariants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      staggerChildren: 0.1,\n      delayChildren: 0.2,\n    },\n  },\n};\n\nconst itemVariants = {\n  hidden: { opacity: 0, y: 20 },\n  visible: {\n    opacity: 1,\n    y: 0,\n    transition: { type: 'spring', stiffness: 300, damping: 24 },\n  },\n};\n\nexport function StaggeredList({ items }: { items: string[] }) {\n  return (\n    \u003Cmotion.ul\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      {items.map((item, index) => (\n        \u003Cmotion.li key={index} variants={itemVariants}>\n          {item}\n        \u003C\u002Fmotion.li>\n      ))}\n    \u003C\u002Fmotion.ul>\n  );\n}\n```\n\n### Interactive Variants\n\n```tsx\nconst buttonVariants = {\n  initial: { scale: 1 },\n  hover: { scale: 1.05 },\n  tap: { scale: 0.95 },\n  disabled: { opacity: 0.5, scale: 1 },\n};\n\nexport function AnimatedButton({\n  children,\n  disabled,\n  onClick,\n}: ButtonProps) {\n  return (\n    \u003Cmotion.button\n      variants={buttonVariants}\n      initial=\"initial\"\n      whileHover={disabled ? 'disabled' : 'hover'}\n      whileTap={disabled ? 'disabled' : 'tap'}\n      animate={disabled ? 'disabled' : 'initial'}\n      onClick={onClick}\n      disabled={disabled}\n      className=\"px-4 py-2 bg-blue-500 text-white rounded-lg\"\n    >\n      {children}\n    \u003C\u002Fmotion.button>\n  );\n}\n```\n\n## Page Transitions\n\n### Next.js App Router\n\n```tsx\n\u002F\u002F app\u002Ftemplate.tsx\n'use client';\n\nimport { motion } from 'framer-motion';\n\nexport default function Template({ children }: { children: React.ReactNode }) {\n  return (\n    \u003Cmotion.div\n      initial={{ opacity: 0, y: 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      exit={{ opacity: 0, y: 20 }}\n      transition={{ duration: 0.3 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### Shared Layout Animations\n\n```tsx\nimport { motion, LayoutGroup } from 'framer-motion';\n\nexport function Tabs({ tabs, activeTab, onTabChange }: TabsProps) {\n  return (\n    \u003CLayoutGroup>\n      \u003Cdiv className=\"flex gap-2\">\n        {tabs.map((tab) => (\n          \u003Cbutton\n            key={tab.id}\n            onClick={() => onTabChange(tab.id)}\n            className=\"relative px-4 py-2\"\n          >\n            {activeTab === tab.id && (\n              \u003Cmotion.div\n                layoutId=\"activeTab\"\n                className=\"absolute inset-0 bg-blue-500 rounded-lg\"\n                transition={{ type: 'spring', stiffness: 500, damping: 30 }}\n              \u002F>\n            )}\n            \u003Cspan className=\"relative z-10\">{tab.label}\u003C\u002Fspan>\n          \u003C\u002Fbutton>\n        ))}\n      \u003C\u002Fdiv>\n    \u003C\u002FLayoutGroup>\n  );\n}\n```\n\n## Gesture Animations\n\n### Drag\n\n```tsx\nexport function DraggableCard() {\n  return (\n    \u003Cmotion.div\n      drag\n      dragConstraints={{ left: -100, right: 100, top: -100, bottom: 100 }}\n      dragElastic={0.2}\n      dragTransition={{ bounceStiffness: 600, bounceDamping: 20 }}\n      whileDrag={{ scale: 1.1, cursor: 'grabbing' }}\n      className=\"w-32 h-32 bg-blue-500 rounded-lg cursor-grab\"\n    \u002F>\n  );\n}\n```\n\n### Swipe to Dismiss\n\n```tsx\nexport function SwipeToDelete({ onDelete, children }: SwipeProps) {\n  return (\n    \u003Cmotion.div\n      drag=\"x\"\n      dragConstraints={{ left: 0, right: 0 }}\n      onDragEnd={(_, info) => {\n        if (info.offset.x \u003C -100) {\n          onDelete();\n        }\n      }}\n      className=\"relative\"\n    >\n      {children}\n      \u003Cmotion.div\n        className=\"absolute right-0 inset-y-0 bg-red-500 flex items-center px-4\"\n        style={{ opacity: 0 }}\n        animate={{ opacity: 1 }}\n      >\n        Delete\n      \u003C\u002Fmotion.div>\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n## Scroll Animations\n\n### Scroll-Triggered\n\n```tsx\nimport { motion, useInView } from 'framer-motion';\nimport { useRef } from 'react';\n\nexport function FadeInWhenVisible({ children }: { children: React.ReactNode }) {\n  const ref = useRef(null);\n  const isInView = useInView(ref, { once: true, margin: '-100px' });\n\n  return (\n    \u003Cmotion.div\n      ref={ref}\n      initial={{ opacity: 0, y: 50 }}\n      animate={isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 50 }}\n      transition={{ duration: 0.6, ease: 'easeOut' }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### Scroll Progress\n\n```tsx\nimport { motion, useScroll, useTransform } from 'framer-motion';\n\nexport function ParallaxHero() {\n  const { scrollY } = useScroll();\n  const y = useTransform(scrollY, [0, 500], [0, 150]);\n  const opacity = useTransform(scrollY, [0, 300], [1, 0]);\n\n  return (\n    \u003Cmotion.div\n      style={{ y, opacity }}\n      className=\"h-screen flex items-center justify-center\"\n    >\n      \u003Ch1 className=\"text-6xl font-bold\">Parallax Hero\u003C\u002Fh1>\n    \u003C\u002Fmotion.div>\n  );\n}\n\nexport function ScrollProgress() {\n  const { scrollYProgress } = useScroll();\n\n  return (\n    \u003Cmotion.div\n      style={{ scaleX: scrollYProgress }}\n      className=\"fixed top-0 left-0 right-0 h-1 bg-blue-500 origin-left z-50\"\n    \u002F>\n  );\n}\n```\n\n## Animation Hooks\n\n### useAnimate (Imperative)\n\n```tsx\nimport { useAnimate } from 'framer-motion';\n\nexport function SubmitButton() {\n  const [scope, animate] = useAnimate();\n\n  const handleClick = async () => {\n    \u002F\u002F Sequence of animations\n    await animate(scope.current, { scale: 0.95 }, { duration: 0.1 });\n    await animate(scope.current, { scale: 1 }, { type: 'spring' });\n\n    \u002F\u002F Success animation\n    await animate(\n      scope.current,\n      { backgroundColor: '#22c55e' },\n      { duration: 0.2 }\n    );\n  };\n\n  return (\n    \u003Cmotion.button ref={scope} onClick={handleClick} className=\"px-4 py-2\">\n      Submit\n    \u003C\u002Fmotion.button>\n  );\n}\n```\n\n### useMotionValue & useTransform\n\n```tsx\nimport { motion, useMotionValue, useTransform } from 'framer-motion';\n\nexport function RotatingCard() {\n  const x = useMotionValue(0);\n  const rotateY = useTransform(x, [-200, 200], [-45, 45]);\n  const opacity = useTransform(x, [-200, 0, 200], [0.5, 1, 0.5]);\n\n  return (\n    \u003Cmotion.div\n      drag=\"x\"\n      dragConstraints={{ left: -200, right: 200 }}\n      style={{ x, rotateY, opacity }}\n      className=\"w-64 h-96 bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl\"\n    \u002F>\n  );\n}\n```\n\n## Reusable Animation Components\n\n### AnimatedContainer\n\n```tsx\n\u002F\u002F components\u002FAnimatedContainer.tsx\nimport { motion, Variants } from 'framer-motion';\n\nconst animations: Record\u003Cstring, Variants> = {\n  fadeIn: {\n    hidden: { opacity: 0 },\n    visible: { opacity: 1 },\n  },\n  fadeInUp: {\n    hidden: { opacity: 0, y: 20 },\n    visible: { opacity: 1, y: 0 },\n  },\n  fadeInDown: {\n    hidden: { opacity: 0, y: -20 },\n    visible: { opacity: 1, y: 0 },\n  },\n  scaleIn: {\n    hidden: { opacity: 0, scale: 0.8 },\n    visible: { opacity: 1, scale: 1 },\n  },\n  slideInLeft: {\n    hidden: { opacity: 0, x: -50 },\n    visible: { opacity: 1, x: 0 },\n  },\n  slideInRight: {\n    hidden: { opacity: 0, x: 50 },\n    visible: { opacity: 1, x: 0 },\n  },\n};\n\ninterface AnimatedContainerProps {\n  children: React.ReactNode;\n  animation?: keyof typeof animations;\n  delay?: number;\n  duration?: number;\n  className?: string;\n}\n\nexport function AnimatedContainer({\n  children,\n  animation = 'fadeInUp',\n  delay = 0,\n  duration = 0.5,\n  className,\n}: AnimatedContainerProps) {\n  return (\n    \u003Cmotion.div\n      variants={animations[animation]}\n      initial=\"hidden\"\n      animate=\"visible\"\n      transition={{ duration, delay, ease: 'easeOut' }}\n      className={className}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### AnimatedList\n\n```tsx\n\u002F\u002F components\u002FAnimatedList.tsx\nimport { motion } from 'framer-motion';\n\nconst containerVariants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      staggerChildren: 0.05,\n    },\n  },\n};\n\nconst itemVariants = {\n  hidden: { opacity: 0, x: -20 },\n  visible: { opacity: 1, x: 0 },\n};\n\ninterface AnimatedListProps\u003CT> {\n  items: T[];\n  renderItem: (item: T, index: number) => React.ReactNode;\n  keyExtractor: (item: T, index: number) => string;\n  className?: string;\n}\n\nexport function AnimatedList\u003CT>({\n  items,\n  renderItem,\n  keyExtractor,\n  className,\n}: AnimatedListProps\u003CT>) {\n  return (\n    \u003Cmotion.ul\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n      className={className}\n    >\n      {items.map((item, index) => (\n        \u003Cmotion.li key={keyExtractor(item, index)} variants={itemVariants}>\n          {renderItem(item, index)}\n        \u003C\u002Fmotion.li>\n      ))}\n    \u003C\u002Fmotion.ul>\n  );\n}\n```\n\n## Transition Presets\n\n```tsx\n\u002F\u002F lib\u002Ftransitions.ts\nexport const transitions = {\n  spring: {\n    type: 'spring',\n    stiffness: 300,\n    damping: 24,\n  },\n  springBouncy: {\n    type: 'spring',\n    stiffness: 500,\n    damping: 15,\n  },\n  springStiff: {\n    type: 'spring',\n    stiffness: 700,\n    damping: 30,\n  },\n  smooth: {\n    type: 'tween',\n    duration: 0.3,\n    ease: 'easeInOut',\n  },\n  snappy: {\n    type: 'tween',\n    duration: 0.15,\n    ease: [0.25, 0.1, 0.25, 1],\n  },\n} as const;\n\n\u002F\u002F Usage\n\u003Cmotion.div transition={transitions.spring} \u002F>\n```\n\n## Reduced Motion Support\n\n```tsx\nimport { useReducedMotion } from 'framer-motion';\n\nexport function AccessibleAnimation({ children }: { children: React.ReactNode }) {\n  const shouldReduceMotion = useReducedMotion();\n\n  return (\n    \u003Cmotion.div\n      initial={{ opacity: 0, y: shouldReduceMotion ? 0 : 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={{ duration: shouldReduceMotion ? 0 : 0.5 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n## Best Practices\n\n1. **Use GPU-accelerated properties**: `opacity`, `transform` (not `width`, `height`)\n2. **Add `layout` for smooth resizing**: Automatic layout animations\n3. **Use `AnimatePresence`**: For exit animations\n4. **Prefer springs**: More natural than tween for UI\n5. **Respect reduced motion**: Use `useReducedMotion` hook\n6. **Avoid animating layout thrashing**: Don't animate `top`, `left`, `width`\n7. **Use `layoutId`**: For shared element transitions\n8. **Stagger children**: For list animations\n\n## Output Checklist\n\nEvery animation implementation should include:\n\n- [ ] Appropriate animation type (simple, variants, gestures)\n- [ ] Smooth transitions with proper easing\n- [ ] Exit animations with AnimatePresence\n- [ ] Reduced motion support\n- [ ] GPU-accelerated properties only\n- [ ] Spring physics for natural feel\n- [ ] Staggered children for lists\n- [ ] Performance tested on low-end devices\n","# Framer Motion Animator\n\nBuild delightful animations and interactions with Framer Motion's declarative API.\n\n## Core Workflow\n\n1. **Identify animation needs**: Entrance, exit, hover, gestures\n2. **Choose animation type**: Simple, variants, gestures, layout\n3. **Define motion values**: Opacity, scale, position, rotation\n4. **Add transitions**: Duration, easing, spring physics\n5. **Orchestrate sequences**: Stagger, delay, parent-child\n6. **Optimize performance**: GPU-accelerated properties\n\n## Installation\n\n```bash\nnpm install framer-motion\n```\n\n## Basic Animations\n\n### Simple Animation\n\n```tsx\nimport { motion } from 'framer-motion';\n\n\u002F\u002F Animate on mount\nexport function FadeIn({ children }: { children: React.ReactNode }) {\n  return (\n    \u003Cmotion.div\n      initial={{ opacity: 0, y: 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={{ duration: 0.5 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n\n\u002F\u002F Animate on hover\nexport function ScaleOnHover({ children }: { children: React.ReactNode }) {\n  return (\n    \u003Cmotion.div\n      whileHover={{ scale: 1.05 }}\n      whileTap={{ scale: 0.95 }}\n      transition={{ type: 'spring', stiffness: 400, damping: 17 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### Exit Animations with AnimatePresence\n\n```tsx\nimport { motion, AnimatePresence } from 'framer-motion';\n\nexport function Modal({ isOpen, onClose, children }: ModalProps) {\n  return (\n    \u003CAnimatePresence>\n      {isOpen && (\n        \u003C>\n          {\u002F* Backdrop *\u002F}\n          \u003Cmotion.div\n            initial={{ opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={{ opacity: 0 }}\n            onClick={onClose}\n            className=\"fixed inset-0 bg-black\u002F50 z-40\"\n          \u002F>\n\n          {\u002F* Modal *\u002F}\n          \u003Cmotion.div\n            initial={{ opacity: 0, scale: 0.95, y: 20 }}\n            animate={{ opacity: 1, scale: 1, y: 0 }}\n            exit={{ opacity: 0, scale: 0.95, y: 20 }}\n            transition={{ type: 'spring', damping: 25, stiffness: 300 }}\n            className=\"fixed inset-0 z-50 flex items-center justify-center\"\n          >\n            \u003Cdiv className=\"bg-white rounded-xl p-6 max-w-md w-full\">\n              {children}\n            \u003C\u002Fdiv>\n          \u003C\u002Fmotion.div>\n        \u003C\u002F>\n      )}\n    \u003C\u002FAnimatePresence>\n  );\n}\n```\n\n## Variants Pattern\n\n### Staggered Children\n\n```tsx\nconst containerVariants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      staggerChildren: 0.1,\n      delayChildren: 0.2,\n    },\n  },\n};\n\nconst itemVariants = {\n  hidden: { opacity: 0, y: 20 },\n  visible: {\n    opacity: 1,\n    y: 0,\n    transition: { type: 'spring', stiffness: 300, damping: 24 },\n  },\n};\n\nexport function StaggeredList({ items }: { items: string[] }) {\n  return (\n    \u003Cmotion.ul\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n    >\n      {items.map((item, index) => (\n        \u003Cmotion.li key={index} variants={itemVariants}>\n          {item}\n        \u003C\u002Fmotion.li>\n      ))}\n    \u003C\u002Fmotion.ul>\n  );\n}\n```\n\n### Interactive Variants\n\n```tsx\nconst buttonVariants = {\n  initial: { scale: 1 },\n  hover: { scale: 1.05 },\n  tap: { scale: 0.95 },\n  disabled: { opacity: 0.5, scale: 1 },\n};\n\nexport function AnimatedButton({\n  children,\n  disabled,\n  onClick,\n}: ButtonProps) {\n  return (\n    \u003Cmotion.button\n      variants={buttonVariants}\n      initial=\"initial\"\n      whileHover={disabled ? 'disabled' : 'hover'}\n      whileTap={disabled ? 'disabled' : 'tap'}\n      animate={disabled ? 'disabled' : 'initial'}\n      onClick={onClick}\n      disabled={disabled}\n      className=\"px-4 py-2 bg-blue-500 text-white rounded-lg\"\n    >\n      {children}\n    \u003C\u002Fmotion.button>\n  );\n}\n```\n\n## Page Transitions\n\n### Next.js App Router\n\n```tsx\n\u002F\u002F app\u002Ftemplate.tsx\n'use client';\n\nimport { motion } from 'framer-motion';\n\nexport default function Template({ children }: { children: React.ReactNode }) {\n  return (\n    \u003Cmotion.div\n      initial={{ opacity: 0, y: 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      exit={{ opacity: 0, y: 20 }}\n      transition={{ duration: 0.3 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### Shared Layout Animations\n\n```tsx\nimport { motion, LayoutGroup } from 'framer-motion';\n\nexport function Tabs({ tabs, activeTab, onTabChange }: TabsProps) {\n  return (\n    \u003CLayoutGroup>\n      \u003Cdiv className=\"flex gap-2\">\n        {tabs.map((tab) => (\n          \u003Cbutton\n            key={tab.id}\n            onClick={() => onTabChange(tab.id)}\n            className=\"relative px-4 py-2\"\n          >\n            {activeTab === tab.id && (\n              \u003Cmotion.div\n                layoutId=\"activeTab\"\n                className=\"absolute inset-0 bg-blue-500 rounded-lg\"\n                transition={{ type: 'spring', stiffness: 500, damping: 30 }}\n              \u002F>\n            )}\n            \u003Cspan className=\"relative z-10\">{tab.label}\u003C\u002Fspan>\n          \u003C\u002Fbutton>\n        ))}\n      \u003C\u002Fdiv>\n    \u003C\u002FLayoutGroup>\n  );\n}\n```\n\n## Gesture Animations\n\n### Drag\n\n```tsx\nexport function DraggableCard() {\n  return (\n    \u003Cmotion.div\n      drag\n      dragConstraints={{ left: -100, right: 100, top: -100, bottom: 100 }}\n      dragElastic={0.2}\n      dragTransition={{ bounceStiffness: 600, bounceDamping: 20 }}\n      whileDrag={{ scale: 1.1, cursor: 'grabbing' }}\n      className=\"w-32 h-32 bg-blue-500 rounded-lg cursor-grab\"\n    \u002F>\n  );\n}\n```\n\n### Swipe to Dismiss\n\n```tsx\nexport function SwipeToDelete({ onDelete, children }: SwipeProps) {\n  return (\n    \u003Cmotion.div\n      drag=\"x\"\n      dragConstraints={{ left: 0, right: 0 }}\n      onDragEnd={(_, info) => {\n        if (info.offset.x \u003C -100) {\n          onDelete();\n        }\n      }}\n      className=\"relative\"\n    >\n      {children}\n      \u003Cmotion.div\n        className=\"absolute right-0 inset-y-0 bg-red-500 flex items-center px-4\"\n        style={{ opacity: 0 }}\n        animate={{ opacity: 1 }}\n      >\n        Delete\n      \u003C\u002Fmotion.div>\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n## Scroll Animations\n\n### Scroll-Triggered\n\n```tsx\nimport { motion, useInView } from 'framer-motion';\nimport { useRef } from 'react';\n\nexport function FadeInWhenVisible({ children }: { children: React.ReactNode }) {\n  const ref = useRef(null);\n  const isInView = useInView(ref, { once: true, margin: '-100px' });\n\n  return (\n    \u003Cmotion.div\n      ref={ref}\n      initial={{ opacity: 0, y: 50 }}\n      animate={isInView ? { opacity: 1, y: 0 } : { opacity: 0, y: 50 }}\n      transition={{ duration: 0.6, ease: 'easeOut' }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### Scroll Progress\n\n```tsx\nimport { motion, useScroll, useTransform } from 'framer-motion';\n\nexport function ParallaxHero() {\n  const { scrollY } = useScroll();\n  const y = useTransform(scrollY, [0, 500], [0, 150]);\n  const opacity = useTransform(scrollY, [0, 300], [1, 0]);\n\n  return (\n    \u003Cmotion.div\n      style={{ y, opacity }}\n      className=\"h-screen flex items-center justify-center\"\n    >\n      \u003Ch1 className=\"text-6xl font-bold\">Parallax Hero\u003C\u002Fh1>\n    \u003C\u002Fmotion.div>\n  );\n}\n\nexport function ScrollProgress() {\n  const { scrollYProgress } = useScroll();\n\n  return (\n    \u003Cmotion.div\n      style={{ scaleX: scrollYProgress }}\n      className=\"fixed top-0 left-0 right-0 h-1 bg-blue-500 origin-left z-50\"\n    \u002F>\n  );\n}\n```\n\n## Animation Hooks\n\n### useAnimate (Imperative)\n\n```tsx\nimport { useAnimate } from 'framer-motion';\n\nexport function SubmitButton() {\n  const [scope, animate] = useAnimate();\n\n  const handleClick = async () => {\n    \u002F\u002F Sequence of animations\n    await animate(scope.current, { scale: 0.95 }, { duration: 0.1 });\n    await animate(scope.current, { scale: 1 }, { type: 'spring' });\n\n    \u002F\u002F Success animation\n    await animate(\n      scope.current,\n      { backgroundColor: '#22c55e' },\n      { duration: 0.2 }\n    );\n  };\n\n  return (\n    \u003Cmotion.button ref={scope} onClick={handleClick} className=\"px-4 py-2\">\n      Submit\n    \u003C\u002Fmotion.button>\n  );\n}\n```\n\n### useMotionValue & useTransform\n\n```tsx\nimport { motion, useMotionValue, useTransform } from 'framer-motion';\n\nexport function RotatingCard() {\n  const x = useMotionValue(0);\n  const rotateY = useTransform(x, [-200, 200], [-45, 45]);\n  const opacity = useTransform(x, [-200, 0, 200], [0.5, 1, 0.5]);\n\n  return (\n    \u003Cmotion.div\n      drag=\"x\"\n      dragConstraints={{ left: -200, right: 200 }}\n      style={{ x, rotateY, opacity }}\n      className=\"w-64 h-96 bg-gradient-to-br from-purple-500 to-pink-500 rounded-xl\"\n    \u002F>\n  );\n}\n```\n\n## Reusable Animation Components\n\n### AnimatedContainer\n\n```tsx\n\u002F\u002F components\u002FAnimatedContainer.tsx\nimport { motion, Variants } from 'framer-motion';\n\nconst animations: Record\u003Cstring, Variants> = {\n  fadeIn: {\n    hidden: { opacity: 0 },\n    visible: { opacity: 1 },\n  },\n  fadeInUp: {\n    hidden: { opacity: 0, y: 20 },\n    visible: { opacity: 1, y: 0 },\n  },\n  fadeInDown: {\n    hidden: { opacity: 0, y: -20 },\n    visible: { opacity: 1, y: 0 },\n  },\n  scaleIn: {\n    hidden: { opacity: 0, scale: 0.8 },\n    visible: { opacity: 1, scale: 1 },\n  },\n  slideInLeft: {\n    hidden: { opacity: 0, x: -50 },\n    visible: { opacity: 1, x: 0 },\n  },\n  slideInRight: {\n    hidden: { opacity: 0, x: 50 },\n    visible: { opacity: 1, x: 0 },\n  },\n};\n\ninterface AnimatedContainerProps {\n  children: React.ReactNode;\n  animation?: keyof typeof animations;\n  delay?: number;\n  duration?: number;\n  className?: string;\n}\n\nexport function AnimatedContainer({\n  children,\n  animation = 'fadeInUp',\n  delay = 0,\n  duration = 0.5,\n  className,\n}: AnimatedContainerProps) {\n  return (\n    \u003Cmotion.div\n      variants={animations[animation]}\n      initial=\"hidden\"\n      animate=\"visible\"\n      transition={{ duration, delay, ease: 'easeOut' }}\n      className={className}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n### AnimatedList\n\n```tsx\n\u002F\u002F components\u002FAnimatedList.tsx\nimport { motion } from 'framer-motion';\n\nconst containerVariants = {\n  hidden: { opacity: 0 },\n  visible: {\n    opacity: 1,\n    transition: {\n      staggerChildren: 0.05,\n    },\n  },\n};\n\nconst itemVariants = {\n  hidden: { opacity: 0, x: -20 },\n  visible: { opacity: 1, x: 0 },\n};\n\ninterface AnimatedListProps\u003CT> {\n  items: T[];\n  renderItem: (item: T, index: number) => React.ReactNode;\n  keyExtractor: (item: T, index: number) => string;\n  className?: string;\n}\n\nexport function AnimatedList\u003CT>({\n  items,\n  renderItem,\n  keyExtractor,\n  className,\n}: AnimatedListProps\u003CT>) {\n  return (\n    \u003Cmotion.ul\n      variants={containerVariants}\n      initial=\"hidden\"\n      animate=\"visible\"\n      className={className}\n    >\n      {items.map((item, index) => (\n        \u003Cmotion.li key={keyExtractor(item, index)} variants={itemVariants}>\n          {renderItem(item, index)}\n        \u003C\u002Fmotion.li>\n      ))}\n    \u003C\u002Fmotion.ul>\n  );\n}\n```\n\n## Transition Presets\n\n```tsx\n\u002F\u002F lib\u002Ftransitions.ts\nexport const transitions = {\n  spring: {\n    type: 'spring',\n    stiffness: 300,\n    damping: 24,\n  },\n  springBouncy: {\n    type: 'spring',\n    stiffness: 500,\n    damping: 15,\n  },\n  springStiff: {\n    type: 'spring',\n    stiffness: 700,\n    damping: 30,\n  },\n  smooth: {\n    type: 'tween',\n    duration: 0.3,\n    ease: 'easeInOut',\n  },\n  snappy: {\n    type: 'tween',\n    duration: 0.15,\n    ease: [0.25, 0.1, 0.25, 1],\n  },\n} as const;\n\n\u002F\u002F Usage\n\u003Cmotion.div transition={transitions.spring} \u002F>\n```\n\n## Reduced Motion Support\n\n```tsx\nimport { useReducedMotion } from 'framer-motion';\n\nexport function AccessibleAnimation({ children }: { children: React.ReactNode }) {\n  const shouldReduceMotion = useReducedMotion();\n\n  return (\n    \u003Cmotion.div\n      initial={{ opacity: 0, y: shouldReduceMotion ? 0 : 20 }}\n      animate={{ opacity: 1, y: 0 }}\n      transition={{ duration: shouldReduceMotion ? 0 : 0.5 }}\n    >\n      {children}\n    \u003C\u002Fmotion.div>\n  );\n}\n```\n\n## Best Practices\n\n1. **Use GPU-accelerated properties**: `opacity`, `transform` (not `width`, `height`)\n2. **Add `layout` for smooth resizing**: Automatic layout animations\n3. **Use `AnimatePresence`**: For exit animations\n4. **Prefer springs**: More natural than tween for UI\n5. **Respect reduced motion**: Use `useReducedMotion` hook\n6. **Avoid animating layout thrashing**: Don't animate `top`, `left`, `width`\n7. **Use `layoutId`**: For shared element transitions\n8. **Stagger children**: For list animations\n\n## Output Checklist\n\nEvery animation implementation should include:\n\n- [ ] Appropriate animation type (simple, variants, gestures)\n- [ ] Smooth transitions with proper easing\n- [ ] Exit animations with AnimatePresence\n- [ ] Reduced motion support\n- [ ] GPU-accelerated properties only\n- [ ] Spring physics for natural feel\n- [ ] Staggered children for lists\n- [ ] Performance tested on low-end devices\n",{"name":5,"description":7},"main","0a2682a1a76e49addb5195815907e9f3ffc8f6e0","app\u002F.agents\u002Fskills\u002Fframer-motion-animator","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3","https:\u002F\u002Fgithub.com\u002Fselivestru","https:\u002F\u002Fsifmeop.xyz","Full-Stack Developer","2026-10-29 22:14:45",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add selivestru\u002Fsift-rate-v3 --skill framer-motion-animator",{"tool":38,"command":39},"bunx","bunx skills add selivestru\u002Fsift-rate-v3 --skill framer-motion-animator",{"tool":41,"command":42},"pnpm","pnpm dlx skills add selivestru\u002Fsift-rate-v3 --skill framer-motion-animator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fframer-motion-animator\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7990CJQ0TKCKFK63ZKES802","ui-ux-pro-max","UI\u002FUX design intelligence for web and mobile. Searchable local database with 84 styles, 192 color palettes, 74 font pairings, 192 product types, 98 UX guidelines, 104 icon entries, 16 GSAP motion presets, and 25 chart types across 22 stacks (React, Next.js, Vue, Nuxt, Svelte, Astro, SwiftUI, React Native, Flutter, Tailwind, shadcn\u002Fui, Jetpack Compose, Angular, Laravel, JavaFX, WPF, WinUI, Avalonia, Uno Platform, UWP, Three.js, and HTML\u002FCSS). Use when designing, building, or reviewing UI: pages, components, color schemes, typography, layout, accessibility, animation, or data visualization.","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fui-ux-pro-max\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M799085MFV653G2C462JBJAP","react-doctor","Use when finishing a feature, fixing a bug, before committing React code, or when the user types `\u002Fdoctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Freact-doctor\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M79902RS54S5XXG5HHEPB8WS","motion","Animation skill for Motion (prev Framer Motion) and CSS animation. Provides: animation best practices (including specific advice for vanilla JS, React, Vue, Base UI and Radix), documentation and example search, CSS spring and bounce generation, MotionScore code and runtime performance audits, and the visual transition editor. Use when writing animations, working with Motion (motion, motion\u002Freact, motion-v, framer-motion), animating a UI, writing CSS linear() springs, auditing performance\u002Fjank\u002Flayout thrash via code or runtime, searching Motion docs or examples, adding a Motion UI section, or upgrading between Motion versions.","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fmotion\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M799002EG53T800SBCBJHYMA","intlayer-usage","Provides general guidelines for using Intlayer in any project. Use when the user asks to \"get started with Intlayer\", \"declare content files\", or understand the \"project structure\" for internationalization.","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fintlayer-usage\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M798ZX7KFWETR6S74VQAC2PB","intlayer-react","Integrates Intlayer internationalization with React component. Use when the user asks to \"setup React i18n\", create a new translated component, use the \"useIntlayer\" hook, or configure providers.","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fintlayer-react\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M798ZSRX6RF45RQRN9Y7DVKF","intlayer-content","Define rich content structures using Intlayer content nodes. Use when the user asks to \"create translations\", \"handle pluralization\", \"use markdown in content\", or implement \"conditional content\".","https:\u002F\u002Fgithub.com\u002Fselivestru\u002Fsift-rate-v3\u002Fblob\u002Fmain\u002Fapp\u002F.agents\u002Fskills\u002Fintlayer-content\u002FSKILL.md",[],[]]