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

gsap-plugins

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

यह टूल GSAP लाइब्रेरी के लिए 'plugins' (छोटे add-ons) इस्तेमाल करने में आपकी मदद करता है। इससे आप इन plugins को register कर सकते हैं और ScrollToPlugin (पेज को किसी खास जगह तक ले जाना), Flip (layout बदलावों को एनिमेट करना), Draggable (एलिमेंट्स को स्क्रीन पर खींचने लायक बनाना) जैसी सुविधाएं इस्तेमाल कर सकते हैं।

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

  • ✓जब आप अपने code में कोई GSAP plugin register करना चाहते हैं।
  • ✓जब पेज पर किसी खास जगह तक जाने वाले scroll एनिमेशन बना रहे हों।
  • ✓जब आपको स्क्रीन पर एलिमेंट्स को draggable बनाना हो।

Skill का लिंक

https://github.com/nexu-io/open-design/blob/main/skills/gsap-plugins/SKILL.md

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

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

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

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

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

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

“मैं GSAP में ScrollToPlugin को कैसे register करूँ?”

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

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

आप `gsap.registerPlugin()` function का इस्तेमाल करते हैं, ताकि GSAP को बताया जा सके कि आप कौन से extra plugins इस्तेमाल करेंगे। इसके बाद आप हर plugin के खास functions को call कर सकते हैं।

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

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

GSAP Plugins

Curated from GreenSock's official GSAP skills: https://github.com/greensock/gsap-skills

When to Use This Skill

Apply when using or reviewing code that uses GSAP plugins: registering plugins, scroll-to, flip/FLIP animations, draggable elements, SVG (DrawSVG, MorphSVG, MotionPath), text (SplitText, ScrambleText), physics, easing plugins (CustomEase, EasePack, CustomWiggle, CustomBounce), or GSDevTools. ScrollTrigger has its own skill (gsap-scrolltrigger).

Related skills: For core tweens use gsap-core; for ScrollTrigger use gsap-scrolltrigger; for React use gsap-react.

Licensing & Install (important)

Every GSAP plugin is free, including for commercial use. Since Webflow's acquisition of GSAP, Club GSAP is no longer a paid tier and no plugin requires a membership, license key, or auth token — this includes formerly Club-only plugins (SplitText, MorphSVG, etc.).

  • ✅ Install everything from the public gsap npm package: npm install gsap. All plugins are included — import them as gsap/SplitText, gsap/MorphSVGPlugin, etc.
  • ❌ Do not generate an .npmrc with a GreenSock auth token, suggest the private npm.greensock.com registry, or tell users to sign up for Club GSAP to access a plugin. Those instructions are outdated.

Registering Plugins

Register each plugin once so GSAP (and bundlers) know to include it. Use gsap.registerPlugin() with every plugin used in the project:

import gsap from "gsap";
import { ScrollToPlugin } from "gsap/ScrollToPlugin";
import { Flip } from "gsap/Flip";
import { Draggable } from "gsap/Draggable";

gsap.registerPlugin(ScrollToPlugin, Flip, Draggable);
  • ✅ Register before using the plugin in any tween or API call.
  • ✅ In React, register at top level or once in the app (e.g. before first useGSAP); do not register inside a component that re-renders. useGSAP is a plugin that needs to be registered before use.

Scroll

ScrollToPlugin

Animates scroll position (window or a scrollable element). Use for “scroll to element” or “scroll to position” without ScrollTrigger.

gsap.registerPlugin(ScrollToPlugin);

gsap.to(window, { duration: 1, scrollTo: { y: 500 } });
gsap.to(window, { duration: 1, scrollTo: { y: "#section", offsetY: 50 } });
gsap.to(scrollContainer, { duration: 1, scrollTo: { x: "max" } });

ScrollToPlugin — key config (scrollTo object):

Option Description
x, y Target scroll position (number), or "max" for maximum
element Selector or element to scroll to (for scroll-into-view)
offsetX, offsetY Offset in pixels from the target position

ScrollSmoother

Smooth scroll wrapper (smooths native scroll). Requires ScrollTrigger and a specific DOM structure (content wrapper + smooth wrapper). Use when smooth, momentum-style scroll is needed. See GSAP docs for setup; register after ScrollTrigger. DOM structure would look like:

<body>
	<div id="smooth-wrapper">
		<div id="smooth-content">
			<!--- ALL YOUR CONTENT HERE --->
		</div>
	</div>
	<!-- position: fixed elements can go outside --->
</body>

DOM / UI

Flip

Capture state with Flip.getState(), then apply changes (e.g. layout or class changes), then use Flip.from() to animate from the previous state to the new state (FLIP: First, Last, Invert, Play). Use when animating between two layout states (lists, grids, expanded/collapsed).

gsap.registerPlugin(Flip);

const state = Flip.getState(".item");
// change DOM (reorder, add/remove, change classes)
Flip.from(state, { duration: 0.5, ease: "power2.inOut" });

Flip — key config (Flip.from vars):

Option Description
absolute Use position: absolute during the flip (default: false)
nested When true, only the first level of children is measured (better for nested transforms)
scale When true, scale elements to fit (avoids stretch); default true
simple When true, only position/scale are animated (faster, less accurate)
duration, ease Standard tween options

More information

https://gsap.com/docs/v3/Plugins/Flip

Draggable

Makes elements draggable, spinnable, or throwable with mouse/touch. Use for sliders, cards, reorderable lists, or any drag interaction.

gsap.registerPlugin(Draggable, InertiaPlugin);


…
अक्सर पूछे जाने वाले सवाल

क्या सभी GSAP plugins पैसे वाले हैं?

नहीं, सभी GSAP plugins मुफ़्त हैं, कॉमर्शियल उपयोग के लिए भी। अब किसी भी plugin को इस्तेमाल करने के लिए license या subscription की ज़रूरत नहीं है।

क्या plugins अलग से install करने पड़ते हैं?

नहीं, सभी plugins मुख्य GSAP package में पहले से शामिल होते हैं। आपको बस उन्हें अपने code में import और register करना होता है।

ScrollToPlugin और ScrollTrigger में क्या अंतर है?

ScrollToPlugin पेज की scroll position को किसी खास बिंदु तक एनिमेट करने के लिए है। ScrollTrigger ज़्यादा जटिल है और scroll position के आधार पर एनिमेशन चालू करने देता है।

जानकारी

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

Official GSAP skill for GSAP plugins — registration, ScrollToPlugin, ScrollSmoother, Flip, Draggable, Inertia, Observer, SplitText, ScrambleText, SVG and physics plugins, CustomEase, EasePack, CustomWiggle, CustomBounce, GSDevTools. Use when the user asks about a GSAP plugin, scroll-to, flip animations, draggable, SVG drawing, or plugin registration.

repo: nexu-io/open-design

लोकप्रियता

GitHub स्टार
101k
रैंकिंग में स्थान
#1182
लाइसेंस
Apache-2.0
अपडेट की गई
15/10/2026

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

0

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

कमेंट

  • …

इस repository की और skills

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