PACKAGE · ANIMATION

gsap

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,

WEEKLY DOWNLOADS 1.6M
STARS 25.6K
FORKS 2.0K
OPEN ISSUES 6
GZIP SIZE 27.8 kB
UNPACKED SIZE 6.3 MB
LAST UPDATED 5mo ago
DOWNLOAD TRENDS

gsap downloads — last 12 months

Download trends for gsap1 download series from Jun 2025 to May 2026. Use left and right arrow keys to inspect monthly values.03.1M6.2M9.3M12.3MJun 2025SepDecMarMay 2026
gsap
ABOUT GSAP

GSAP (GreenSock Animation Platform) tackles the inherent complexities of JavaScript-driven animations, providing a high-performance library for creating fluid visual experiences across all major browsers. It aims to simplify the animation creation process, enabling developers to build sophisticated effects with greater ease and control than native CSS animations or more basic JavaScript solutions.

The core philosophy behind GSAP is developer empowerment through a robust, yet intuitive, API that prioritizes performance and cross-browser compatibility. It is primarily designed for front-end developers and designers who need to implement custom animations, interactive elements, and complex visual sequences without being bogged down by browser inconsistencies or verbose code.

GSAP's primary API revolves around the `gsap.to()`, `gsap.from()`, and `gsap.fromTo()` methods, allowing for declarative animation definitions. It supports animating virtually any JavaScript-accessible property, including CSS properties, SVG attributes, and even JavaScript objects. Advanced features like timeline manipulation with `gsap.timeline()`, sequencing, and scrubbing control offer fine-grained control over complex animation choreography.

This library integrates seamlessly into modern front-end workflows, supporting popular frameworks such as React, Vue, and Angular, as well as plain JavaScript projects. Its compatibility extends to various environments, including WebGL and canvas, making it a versatile tool for diverse interactive applications and rich media experiences.

With a lean bundle size of 28.0 kB (gzipped) and a track record of robust performance, GSAP is built for speed and efficiency. The library is mature, widely adopted (2.2M weekly downloads), and actively maintained, ensuring reliability for production environments. Its extensive documentation and extensive community support further solidify its position as a leading animation solution.

While powerful, GSAP's extensive feature set might be overkill for extremely simple, single-property CSS transitions. For very basic UI feedback, lighter CSS-only solutions or native browser APIs might suffice, though they often lack the timeline control, sequencing capabilities, and cross-browser consistency that GSAP provides.

WHEN TO USE
  • When animating complex sequences of CSS properties, SVG elements, or custom object properties with precise timing and control.
  • When creating interactive user interfaces that require smooth transitions, micro-interactions, and visual feedback beyond basic CSS.
  • For building performant canvas or WebGL animations where JavaScript-driven updates are necessary.
  • When developing rich media experiences, interactive infographics, or product configurators requiring sophisticated visual effects.
  • For implementing scroll-triggered animations using its ScrollTrigger plugin to synchronize motion with user scrolling.
  • When needing to manage multiple concurrent animations, create complex timelines, and control playback (play, pause, reverse, scrub) programmatically.
WHEN NOT TO USE
  • If your animation needs can be fully satisfied by simple CSS transitions or keyframe animations for basic property changes.
  • If the project requires only a handful of very basic element transformations without complex sequencing or timing.
  • When targeting environments with extremely limited JavaScript execution capabilities where even a lean library is prohibitive.
  • If you only need to animate a single, simple CSS property and don't foresee needing GSAP's advanced features like timelines or complex sequencing.
  • For projects where a lighter-weight, less feature-rich animation library that focuses solely on basic tweening is explicitly preferred for minimal footprint.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 4
gsap vs motion ★ 32.2K · 6.7M/wk gsap vs @formkit/auto-animate ★ 13.8K · 436.8K/wk gsap vs animejs ★ 69.4K · 423.2K/wk gsap vs framer-motion ★ 32.2K · 18.7M/wk