Skip to content
Back to skills

Framer Motion Interactive Animation

ASecurity

Framer Motion animations: motion components, gestures (hover/tap), entrance/exit, scroll triggers, and performance. Keywords: "animate", "animation", "framer motion", "hover", "scroll", "whileHover", "AnimatePresence"

  • 666 stars
  • 0 votes
  • 5 copies
  • 106 views
  • Added February 8, 2026
designspringperformance

Works with

  • cli

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill framer-motion-interactive-animation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Framer Motion Interactive Animation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Framer Motion Interactive Animation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-framer-motion-interactive-animation/badge)](https://www.skillsdirectory.com/skills/majiayu000-framer-motion-interactive-animation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: framer-motion-interactive-animation
description: |
  Framer Motion animations: motion components, gestures (hover/tap), entrance/exit, scroll triggers, and performance.
  Keywords: "animate", "animation", "framer motion", "hover", "scroll", "whileHover", "AnimatePresence"
---

# Framer Motion Interactive Animation

## motion Component

Convert any element to animatable:

\`\`\`tsx
'use client';

import { motion } from 'framer-motion';

<motion.div
  animate={{ x: 100 }}
  transition={{ duration: 0.5 }}
/>
\`\`\`

## Gesture Animations

### Hover/Tap Effects

\`\`\`tsx
<motion.button
  whileHover={{ scale: 1.05 }}
  whileTap={{ scale: 0.95 }}
  transition={{ duration: 0.2 }}
>
  Click Me
</motion.button>
\`\`\`

## Entrance Animations

\`\`\`tsx
<motion.div
  initial={{ opacity: 0, y: 20 }}
  animate={{ opacity: 1, y: 0 }}
  transition={{ duration: 0.5 }}
>
  Fades in and slides up
</motion.div>
\`\`\`

## Exit Animations

**CRITICAL**: Must wrap in \`<AnimatePresence>\`

\`\`\`tsx
import { motion, AnimatePresence } from 'framer-motion';

<AnimatePresence>
  {isVisible && (
    <motion.div
      initial={{ opacity: 0 }}
      animate={{ opacity: 1 }}
      exit={{ opacity: 0 }}
    >
      Content with exit animation
    </motion.div>
  )}
</AnimatePresence>
\`\`\`

## Scroll-Triggered Animations

\`\`\`tsx
<motion.div
  initial={{ opacity: 0, y: 50 }}
  whileInView={{ opacity: 1, y: 0 }}
  viewport={{ once: true }}  // Only animate once
  transition={{ duration: 0.6 }}
>
  Appears when scrolled into view
</motion.div>
\`\`\`

## Transition Options

\`\`\`tsx
// Spring (physics-based)
transition={{ type: "spring", stiffness: 300, damping: 30 }}

// Tween (duration-based)
transition={{ duration: 0.3, ease: "easeInOut" }}
\`\`\`

## Performance Best Practices

✅ **Animate**: \`transform\` (x, y, scale, rotate), \`opacity\`
❌ **Don't animate**: width, height, margin, padding (causes reflow)

✅ Use \`viewport={{ once: true }}\` for scroll animations
❌ Forget \`<AnimatePresence>\` for exit animations

---

**Token Estimate**: ~2,200 tokens

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.