GSAP (GreenSock Animation Platform)
Ultra high-performance, professional-grade animation for the modern web
What is GSAP? (video)
Getting started video
Unlike monolithic frameworks that dictate how you structure your apps, GSAP is completely flexible; sprinkle it wherever you want. React, Vue, Angular or vanilla JS - doesn't matter. Simply put, GSAP is the most robust high-performance animation library on the planet, which is probably why every major ad network excludes it from file size calculations.
TweenMax is most popular because it has all the essential tools plus several common plugins, all in one file:
Click the green "Download GSAP" button at greensock.com for more options. Click "customize" at the bottom of the resulting window to see all the extra plugins and tool URLs.
Draggable, for example, is at:
Most ad networks have GSAP on their CDNs as well, so contact them for the appropriate URL(s).
See the full guide to using GSAP via NPM.
npm install gsap
The default (main) file is TweenMax which includes TweenLite, TimelineLite, TimelineMax, all of the eases (except CustomEase/CustomWiggle/CustomBounce) and the following plugins: css, roundProps, bezier, attr, and directionalRotation.
//typical import;//or get to the parts that aren't included inside TweenMax:;;//or, as of 2.0, all tools are exported from the "all" file (excluding bonus plugins):;//if tree shaking dumps plugins, just reference them somewhere in your code like:const plugins = CSSPlugin ScrollToPlugin;
As of version 2.0, the NPM files are ES modules, though there's also a /umd/ directory with UMD files for extra compatibility.
For Club GreenSock-only plugins, download them from your GreenSock.com account and then treat them as part of your own JS payload or drop them into your node_modules/gsap folder. Post other questions in our forums and we'd be happy to help.
- GSAP home page
- Getting started guide
- Full documentation
- Community forums
- NPM & Webpack usage guide
- Examples & showcases
- Why GSAP? (a practical guide for developers)
- Advanced staggers
- Draggable demo
- Animating SVG with GSAP
- Club GreenSock (get access to bonus plugins and tools not in this repository)
- css-tricks article about writing smarter animation code
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 forums are an excellent resource for learning and getting your questions answered. Report any bugs there too please (it's also okay to file an issue on Github if you prefer).
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-2019, GreenSock. All rights reserved.