MCPcopy
hub / github.com/greensock/GSAP

github.com/greensock/GSAP @3.15.0 sqlite

repository ↗ · DeepWiki ↗ · release 3.15.0 ↗
2,204 symbols 6,620 edges 100 files 25 documented · 1%
README

GSAP (GreenSock Animation Platform)

GSAP - Animate anything

GSAP is a framework-agnostic JavaScript animation library that turns developers into animation superheroes. Build high-performance animations that work in every major browser. Animate CSS, SVG, canvas, React, Vue, WebGL, colors, strings, motion paths, generic objects... anything JavaScript can touch! GSAP's ScrollTrigger plugin delivers jaw-dropping scroll-based animations with minimal code. gsap.matchMedia() makes building responsive, accessibility-friendly animations a breeze.

No other library delivers such advanced sequencing, reliability, and tight control while solving real-world problems on over 12 million sites. GSAP works around countless browser inconsistencies; your animations just work. At its core, GSAP is a high-speed property manipulator, updating values over time with extreme accuracy. It's up to 20x faster than jQuery!

GSAP is completely flexible; sprinkle it wherever you want. Zero dependencies.

There are many optional plugins and easing functions for achieving advanced effects easily like scrolling, morphing, text splitting, animating along a motion path or FLIP animations. There's even a handy Observer for normalizing event detection across browsers/devices.

Get Started

Get Started with GSAP

Docs & Installation

View the full documentation here, including an installation guide.

CDN

<script src="https://cdn.jsdelivr.net/npm/gsap@3.15/dist/gsap.min.js"></script>

See JSDelivr's dedicated GSAP page for quick CDN links to the core files/plugins. There are more installation instructions at gsap.com.

Every major ad network excludes GSAP from file size calculations and most have it on their own CDNs, so contact them for the appropriate URL(s).

NPM

See the guide to using GSAP via NPM here.

npm install gsap

GSAP's core can animate almost anything including CSS and attributes, plus it includes all of the utility methods like interpolate(), mapRange(), most of the eases, and it can do snapping and modifiers.

// typical import
import gsap from "gsap";

// get other plugins:
import ScrollTrigger from "gsap/ScrollTrigger";
import Flip from "gsap/Flip";
import Draggable from "gsap/Draggable";

// or all tools are exported from the "all" file (excluding members-only plugins):
import { gsap, ScrollTrigger, Draggable, MotionPathPlugin } from "gsap/all";

// don't forget to register plugins
gsap.registerPlugin(ScrollTrigger, Draggable, Flip, MotionPathPlugin); 

The NPM files are ES modules, but there's also a /dist/ directory with UMD files for extra compatibility.

GSAP is FREE!

Thanks to Webflow, GSAP is now 100% FREE including ALL of the bonus plugins like SplitText, MorphSVG, and all the others that were exclusively available to Club GSAP members. That's right - the entire GSAP toolset is FREE, even for commercial use! 🤯 Read more here

ScrollTrigger & ScrollSmoother

If you're looking for scroll-driven animations, GSAP's ScrollTrigger plugin is the standard. There's a companion ScrollSmoother as well.

ScrollTrigger

Using React?

There's a @gsap/react package that exposes a useGSAP() hook which is a drop-in replacement for useEffect()/useLayoutEffect(), automating cleanup tasks. Please read the React guide for details.

Resources

Need help?

Ask in the friendly GSAP forums. Or share your knowledge and help someone else - it's a great way to sharpen your skills! Report any bugs there too (or file an issue here if you prefer).

License

GreenSock's standard "no charge" license can be viewed at https://gsap.com/standard-license.

Copyright (c) 2008-2026, GreenSock. All rights reserved.

Extension points exported contracts — how you extend this code

PluginScope (Interface)
(no doc) [6 implementers]
types/gsap-plugins.d.ts
VelocityTracker (Interface)
(no doc) [11 implementers]
types/utils/VelocityTracker.d.ts
MatchMedia (Interface)
(no doc) [2 implementers]
types/gsap-core.d.ts
InertiaPlugin (Interface)
(no doc) [1 implementers]
types/inertia-plugin.d.ts
BackConfig (Interface)
(no doc) [1 implementers]
types/ease.d.ts
ObserverVars (Interface)
(no doc)
types/observer.d.ts
Vars (Interface)
(no doc)
types/text-plugin.d.ts
PixiMatrix (Interface)
(no doc)
types/pixi-plugin.d.ts

Core symbols most depended-on inside this repo

add
called by 132
types/gsap-core.d.ts
kill
called by 112
types/gsap-core.d.ts
set
called by 112
src/gsap-core.js
duration
called by 104
src/gsap-core.js
call
called by 99
src/gsap-core.js
progress
called by 89
src/gsap-core.js
apply
called by 78
src/utils/matrix.js
pause
called by 74
src/gsap-core.js

Shape

Function 1,523
Method 384
Interface 157
Class 140

Languages

TypeScript100%

Modules by API surface

src/gsap-core.js259 symbols
esm/gsap-core.js139 symbols
src/ScrollTrigger.js92 symbols
src/Flip.js90 symbols
esm/ScrollTrigger.js78 symbols
src/Draggable.js76 symbols
src/utils/PathEditor.js74 symbols
esm/Draggable.js66 symbols
src/CSSPlugin.js51 symbols
src/GSDevTools.js49 symbols
esm/GSDevTools.js49 symbols
esm/CSSPlugin.js46 symbols

For agents

$ claude mcp add GSAP \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact