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/components/DraggableBox.jsx
View on GitHubimport { motion } from 'framer-motion'
import { useState } from 'react'
export default function DraggableBox() {
const [isDragging, setIsDragging] = useState(false)
return (
<div style={{
height: '300px',
position: 'relative',
background: 'rgba(255, 255, 255, 0.05)',
borderRadius: '16px',
border: '2px dashed rgba(255, 255, 255, 0.3)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center'
}}>
<motion.div
drag
dragConstraints={{
left: -100,
right: 100,
top: -100,
bottom: 100
}}
dragElastic={0.1}
whileDrag={{
scale: 1.1,
cursor: 'grabbing',
boxShadow: '0 20px 40px rgba(0, 0, 0, 0.4)'
}}
onDragStart={() => setIsDragging(true)}
onDragEnd={() => setIsDragging(false)}
style={{
width: '150px',
height: '150px',
background: isDragging
? 'linear-gradient(135deg, #f093fb 0%, #f5576c 100%)'
: 'rgba(255, 255, 255, 0.2)',
borderRadius: '16px',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
cursor: 'grab',
userSelect: 'none',
fontWeight: 'bold',
fontSize: '1.1rem',
}}
>
{isDragging ? 'Dragging!' : 'Drag me'}
</motion.div>
</div>
)
}
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 |