marselo-4/TotAuto / .claude/skills/motion-framer
motion-framer
VerifiedModern animation library for React and JavaScript. Create smooth, production-ready animations with motion components, variants, gestures (hover/tap/drag), layout animations, AnimatePresence exit animations, spring physics, and scroll-based effects. Use when building interactive UI components, micro-interactions, page transitions, or complex animation sequences.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 20.5 KB |
| assets/examples/README.md | markdown | 72.3 KB |
| assets/starter_motion/README.md | markdown | 6.6 KB |
| assets/starter_motion/index.html | other | 958 B |
| assets/starter_motion/package.json | manifest | 452 B |
| assets/starter_motion/src/App.css | other | 1.7 KB |
| assets/starter_motion/src/App.jsx | other | 3.4 KB |
| assets/starter_motion/src/components/DraggableBox.jsx | other | 1.4 KB |
| assets/starter_motion/src/components/HoverCard.jsx | other | 803 B |
| assets/starter_motion/src/components/StaggerList.jsx | other | 1.5 KB |
| assets/starter_motion/src/main.jsx | other | 208 B |
| assets/starter_motion/vite.config.js | script | 210 B |
| references/api_reference.md | markdown | 20.0 KB |
| scripts/animation_generator.pyexecutable | script | 15.2 KB |
| scripts/variant_builder.pyexecutable | script | 13.6 KB |
assets/starter_motion/src/App.jsx
View on GitHubimport { useState } from 'react'
import { motion, AnimatePresence } from 'framer-motion'
import HoverCard from './components/HoverCard'
import DraggableBox from './components/DraggableBox'
import StaggerList from './components/StaggerList'
import './App.css'
function App() {
const [showModal, setShowModal] = useState(false)
return (
<div className="app">
<header className="header">
<motion.h1
initial={{ opacity: 0, y: -20 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.5 }}
>
Motion Starter
</motion.h1>
<motion.p
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 0.2, duration: 0.5 }}
>
Framer Motion animation examples
</motion.p>
</header>
<main className="main">
<section className="section">
<h2>Hover Animations</h2>
<div className="grid">
<HoverCard title="Card 1">
Hover over me to see the animation
</HoverCard>
<HoverCard title="Card 2">
Different hover effects
</HoverCard>
<HoverCard title="Card 3">
Smooth transitions
</HoverCard>
</div>
</section>
<section className="section">
<h2>Drag Interaction</h2>
<DraggableBox />
</section>
<section className="section">
<h2>Staggered List</h2>
<StaggerList />
</section>
<section className="section">
<h2>Exit Animations</h2>
<motion.button
className="modal-button"
whileHover={{ scale: 1.05 }}
whileTap={{ scale: 0.95 }}
onClick={() => setShowModal(!showModal)}
>
{showModal ? 'Close' : 'Open'} Modal
</motion.button>
<AnimatePresence mode="wait">
{showModal && (
<motion.div
key="modal"
className="modal-backdrop"
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
onClick={() => setShowModal(false)}
>
<motion.div
className="modal"
initial={{ opacity: 0, scale: 0.9, y: 20 }}
animate={{ opacity: 1, scale: 1, y: 0 }}
exit={{ opacity: 0, scale: 0.9, y: -20 }}
transition={{ type: 'spring', stiffness: 300, damping: 30 }}
onClick={(e) => e.stopPropagation()}
>
<h3>Modal Title</h3>
<p>This modal animates in and out smoothly with AnimatePresence.</p>
<motion.button
className="close-button"
whileHover={{ scale: 1.1 }}
whileTap={{ scale: 0.9 }}
onClick={() => setShowModal(false)}
>
Close
</motion.button>
</motion.div>
</motion.div>
)}
</AnimatePresence>
</section>
</main>
<footer className="footer">
<motion.p
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
transition={{ delay: 0.5 }}
>
Built with Framer Motion
</motion.p>
</footer>
</div>
)
}
export default App
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation). | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK). | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |