GSAP (GreenSock Animation Platform)
Professional-grade animation for the modern web
What is GSAP? (video)
GSAP is completely flexible; sprinkle it wherever you want. Zero dependencies.
Docs & Installation
Click the green "Get GSAP Now" button at greensock.com for more options and installation instructions, including CDN URLs for various plugins.
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).
See the guide to using GSAP via NPM here.
npm install gsap
The default (main) file is gsap.js which includes most of the eases as well as the core plugins like CSSPlugin, AttrPlugin, SnapPlugin, ModifiersPlugin, and all of the utility methods like interpolate(), mapRange(), etc.
// typical import;// or get other plugins:;;// or all tools are exported from the "all" file (excluding bonus plugins):;// don't forget to register pluginsgsap;
The NPM files are ES modules, but there's also a /dist/ directory with UMD files for extra compatibility.
Download Club GreenSock members-only plugins from your GreenSock.com account and then include them in your own JS payload. There's even a tarball file you can install with NPM/Yarn. Post questions in our forums and we'd be happy to help.
Getting Started (includes video)
- GSAP home page
- Getting started guide
- Why GSAP? (convince your boss)
- Staggering animations in GSAP 3
- Club GreenSock (get access to bonus plugins not in this repository)
Get CustomEase for free
Sign up for a free GreenSock account to gain access to CustomEase which lets you create literally any ease imaginable (unlimited control points). It's in the download zip at GreenSock.com (when you're logged in).
What is Club GreenSock? (video)
Sign up anytime.
Advanced playback controls & debugging
Try all bonus plugins for free on Codepen
GreenSock's standard "no charge" license can be viewed at http://greensock.com/standard-license. Club GreenSock members are granted additional rights. See http://greensock.com/licensing/ for details. Why doesn't GreenSock use an MIT (or similar) open source license, and why is that a good thing? This article explains it all: http://greensock.com/why-license/
Copyright (c) 2008-2020, GreenSock. All rights reserved.