Skip to content

marselo-4/TotAuto / .claude/skills/motion-framer

motion-framer

Verified

Modern 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.

assets/starter_motion/src/components/DraggableBox.jsx

View on GitHub
import { 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>
  )
}
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: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall