मुख्य सामग्री पर जाएँ
Skillpedia
वेबसाइट और UI (frontend)75k · #2657

framer-motion

यह क्या करती है

यह स्किल Framer Motion से React में बारह क्लासिक एनिमेशन सिद्धांतों के साथ एनिमेशन बनाना सिखाती है। यह वेब डेवलपर के लिए है जो अपने इंटरफ़ेस में जीवंत और स्वाभाविक मूवमेंट चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप React इंटरफ़ेस बना रहे हों और उसमें स्वाभाविक, जीवंत मूवमेंट चाहिए।
  • ✓जब आप चाहते हैं कि बटन, कार्ड या आइकन हिलते समय सिकुड़ें, फैलें या आगे-पीछे झूलें।
  • ✓जब आप किसी वेब कंपोनेंट पर क्लासिक एनिमेशन नियम लागू करना चाहते हैं।

Skill का लिंक

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/framer-motion/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/framer-motion/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“Framer Motion का उपयोग करके इस React बटन को क्लिक करने पर सिकुड़ने और फैलने वाला बनाएं।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

स्किल हर सिद्धांत के लिए छोटे कोड उदाहरण देती है, जैसे स्केलिंग, क्रमवार देरी और इजिंग कर्व, जिन्हें आप अपने कंपोनेंट में ढाल सकते हैं।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Framer Motion Animation Principles

Implement all 12 Disney animation principles using Framer Motion's declarative React API.

1. Squash and Stretch

<motion.div
  animate={{ scaleX: [1, 1.2, 1], scaleY: [1, 0.8, 1] }}
  transition={{ duration: 0.3, times: [0, 0.5, 1] }}
/>

2. Anticipation

<motion.div
  variants={{
    idle: { y: 0, scaleY: 1 },
    anticipate: { y: 10, scaleY: 0.9 },
    jump: { y: -200 }
  }}
  initial="idle"
  animate={["anticipate", "jump"]}
  transition={{ duration: 0.5, times: [0, 0.2, 1] }}
/>

3. Staging

<motion.div animate={{ filter: "blur(3px)", opacity: 0.6 }} /> {/* bg */}
<motion.div animate={{ scale: 1.1, zIndex: 10 }} /> {/* hero */}

4. Straight Ahead / Pose to Pose

<motion.div
  animate={{
    x: [0, 100, 200, 300],
    y: [0, -50, 0, -30]
  }}
  transition={{ duration: 1, ease: "easeInOut" }}
/>

5. Follow Through and Overlapping Action

<motion.div animate={{ x: 200 }} transition={{ duration: 0.5 }}>
  <motion.span
    animate={{ x: 200 }}
    transition={{ duration: 0.5, delay: 0.05 }} // hair
  />
  <motion.span
    animate={{ x: 200 }}
    transition={{ duration: 0.6, delay: 0.1 }} // cape
  />
</motion.div>

6. Slow In and Slow Out

<motion.div
  animate={{ x: 300 }}
  transition={{
    duration: 0.6,
    ease: [0.42, 0, 0.58, 1] // easeInOut cubic-bezier
  }}
/>
// Or use: "easeIn", "easeOut", "easeInOut"

7. Arc

<motion.div
  animate={{
    x: [0, 100, 200],
    y: [0, -100, 0]
  }}
  transition={{ duration: 1, ease: "easeInOut" }}
/>

8. Secondary Action

<motion.button
  whileHover={{ scale: 1.05 }}
  whileTap={{ scale: 0.95 }}
>
  <motion.span
    animate={{ rotate: [0, 10, -10, 0] }}
    transition={{ duration: 0.3 }}
  >
    Icon
  </motion.span>
</motion.button>

9. Timing

const timings = {
  fast: { duration: 0.15 },
  normal: { duration: 0.3 },
  slow: { duration: 0.6 },
  spring: { type: "spring", stiffness: 300, damping: 20 }
};

10. Exaggeration

<motion.div
  animate={{ scale: 1.5, rotate: 720 }}
  transition={{
    type: "spring",
    stiffness: 200,
    damping: 10 // low damping = overshoot
  }}
/>

11. Solid Drawing

<motion.div
  style={{ perspective: 1000 }}
  animate={{ rotateX: 45, rotateY: 30 }}
  transition={{ duration: 0.5 }}
/>

12. Appeal

<motion.div
  whileHover={{
    scale: 1.02,
    boxShadow: "0 20px 40px rgba(0,0,0,0.2)"
  }}
  transition={{ duration: 0.3 }}
/>

Stagger Children

const container = {
  hidden: { opacity: 0 },
  show: {
    opacity: 1,
    transition: { staggerChildren: 0.1 }
  }
};

<motion.ul variants={container} initial="hidden" animate="show">
  {items.map(item => <motion.li variants={itemVariant} />)}
</motion.ul>

Key Framer Motion Features

  • animate - Target state
  • variants - Named animation states
  • whileHover / whileTap - Gesture animations
  • transition - Timing and easing
  • AnimatePresence - Exit animations
  • useAnimation - Programmatic control
  • layout - Auto-animate layout changes
अक्सर पूछे जाने वाले सवाल

बारह सिद्धांत कौन-से हैं?

ये क्लासिक एनिमेशन नियम हैं, जैसे स्क्वैश और स्ट्रेच, एंटिसिपेशन, स्टेजिंग और स्लो इन स्लो आउट।

क्या मुझे React आना ज़रूरी है?

हाँ। उदाहरण Framer Motion लाइब्रेरी इस्तेमाल करने वाले React कंपोनेंट हैं।

क्या यह मूवमेंट के समय को भी कवर करता है?

हाँ। यह दिखाता है कि हर मोशन के लिए अवधि, देरी और इजिंग कैसे सेट करें।

जानकारी

लेखक का मूल विवरण

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

repo: calesthio/OpenMontage

लोकप्रियता

GitHub स्टार
75k
रैंकिंग में स्थान
#2657
लाइसेंस
AGPL-3.0
अपडेट की गई
28/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills