gsap-plugins

Implements GSAP plugin registration and usage for scroll, drag, text, SVG, and physics animations.

1|Updated Aug 20, 2023
One-click install
npx skills add https://github.com/imanlangaran/mini-projects --skill gsap-plugins-imanlangaran
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gsap-plugins
Source: https://github.com/imanlangaran/mini-projects/tree/main/building-sell/.claude/skills/gsap-plugins
Command: npx skills add https://github.com/imanlangaran/mini-projects --skill gsap-plugins-imanlangaran

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gsap.

What problem does it solve? Working with GSAP's many plugins requires knowing correct registration order, import paths, configuration options, and current licensing rules, and outdated advice about Club GSAP memberships leads to broken setups. ## Core Features & Use Cases - Plugin Registration & Licensing: Register plugins with gsap.registerPlugin() and install everything from the public gsap npm package, with no Club GSAP membership or auth token required. - Scroll, Drag & Layout Animations: Use ScrollToPlugin, ScrollSmoother, Flip, Draggable, InertiaPlugin, and Observer for scroll-to, FLIP layout transitions, and momentum drag interactions. - Text, SVG & Physics Effects: Apply SplitText, ScrambleText, DrawSVG, MorphSVG, MotionPath, Physics2D, and easing plugins like CustomEase for advanced animation effects. - Use Case: When a user asks to animate a headline character-by-character on page load, this Skill provides the correct SplitText.create() call with type, autoSplit, and onSplit configuration. ## Quick Start Ask the assistant to register the GSAP plugins needed for your project and write a tween that uses them, such as a draggable element with inertia or a scroll-to animation.

Frequently Asked Questions about gsap-plugins

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register GSAP plugins in a project?

Import each plugin from the gsap package and call gsap.registerPlugin() with all of them before first use, for example gsap.registerPlugin(ScrollToPlugin, Flip, Draggable). In React, register once at the top level rather than inside re-rendering components.

Do GSAP plugins like SplitText and MorphSVG require a paid Club GSAP membership?

No. All GSAP plugins are free, including for commercial use, since Webflow's acquisition of GSAP. Install everything from the public gsap npm package and import plugins directly; no license key, auth token, or private registry is needed.

How do I animate text character by character with GSAP?

Use SplitText.create(target, { type: "words, chars" }) to split the element, then tween split.chars with stagger. For re-splitting on font load or resize, set autoSplit: true and return your animation from the onSplit callback.

Why is my DrawSVG animation not showing anything?

DrawSVG only animates strokes, so the target element must have a visible stroke and stroke-width set in CSS or as SVG attributes. It works on path, line, polyline, polygon, rect, and ellipse elements, but does not affect fill.

How do I make a GSAP Draggable element glide with momentum?

Register both Draggable and InertiaPlugin, then set inertia: true in Draggable.create(). You can also track velocity with InertiaPlugin.track() and use inertia: { x: "auto" } in a tween to glide to a stop.

When should I use Flip instead of a regular GSAP tween?

Use Flip when animating between two layout states, such as reordered lists or expanded panels. Capture the state with Flip.getState(), change the DOM, then call Flip.from() to animate from the old state to the new one.