Installation
Install GSAP via npm or yarn:Basic usage
GSAP (GreenSock Animation Platform) provides a powerful imperative API for creating complex animations. It works with any JavaScript framework or vanilla JS.Core animation methods
- gsap.to()
- gsap.from()
- gsap.fromTo()
Animate from current state to defined values.
Key features
Performance
Ultra-high performance with 60fps animations. Up to 20x faster than jQuery.
Easing library
Extensive collection of easing functions including elastic, bounce, and custom bezier curves.
Timeline
Sequence and orchestrate complex animations with precise timing control.
Cross-browser
Works everywhere, even on older browsers. Handles vendor prefixes automatically.
Timeline for complex sequences
Create sophisticated animation sequences:Advanced easing
GSAP includes professional easing functions:Controlling animations
GSAP gives you full control over animation playback:Example from the playground
Here’s the GSAP demo from the Animation Playground:When to use it
Complex animation sequences
Complex animation sequences
GSAP excels at creating complex, orchestrated animation sequences with precise timing control using timelines.
Maximum performance
Maximum performance
When you need the absolute best performance for intensive animations, GSAP is the industry standard.
SVG animations
SVG animations
GSAP has exceptional SVG support with plugins for morphing, drawing, and complex path animations.
Professional projects
Professional projects
Trusted by major brands and used in award-winning websites. Backed by GreenSock’s professional support.
Fine-grained control
Fine-grained control
When you need precise control over every aspect of your animations including playback, scrubbing, and dynamic updates.
Plugins and extras
GSAP offers powerful plugins for advanced features:- ScrollTrigger: Scroll-based animations
- Draggable: Advanced drag-and-drop functionality
- MorphSVG: Morph between SVG shapes (Club GreenSock)
- SplitText: Animate text character-by-character (Club GreenSock)
- DrawSVG: Animate SVG strokes (Club GreenSock)
Some plugins require a Club GreenSock membership for commercial use.
Learn more
Animation examples
Explore GSAP animation examples
Official docs
Visit the GSAP documentation