Skip to content
Back to libraries
GSAP logo

GSAP (GreenSock Animation Platform)

The industry standard JavaScript animation library built for professionals. Ultra-high performance, robust timeline control, and zero framework constraints.

GSAP Official Overview

Overview

GSAP (GreenSock Animation Platform) is the industry-standard JavaScript animation engine trusted by millions of sites and award-winning agencies. Built for high performance, silk-smooth 60fps rendering, and seamless cross-browser consistency, GSAP animates CSS properties, SVG, canvas, generic JavaScript objects, and Three.js scenes without breaking a sweat.

Key Features

  • ⚡ Exceptional Performance & Smoothness: Highly optimized ticker loop and zero layout thrashing ensure buttery-smooth animations even under heavy DOM load.
  • ⏱️ Advanced Timeline Sequencing: Effortlessly build, nest, pause, reverse, speed up, or seek complex choreographies using gsap.timeline().
  • 📜 ScrollTrigger & Rich Plugin Ecosystem: Pin elements, scrub animations to scroll position, morph SVGs, and handle physics with battle-tested official plugins.
  • 🌐 Framework-Agnostic & Universal: Integrates seamlessly with React, Vue, Svelte, Angular, Astro, and pure Vanilla JS.

Installation & Quick Start

npm install gsap
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';

gsap.registerPlugin(ScrollTrigger);

// Create a sequenced timeline linked to scroll
const tl = gsap.timeline({
  scrollTrigger: {
    trigger: '.hero-section',
    start: 'top center',
    end: 'bottom top',
    scrub: 1,
  },
});

tl.from('.title', { y: 60, opacity: 0, duration: 1, ease: 'power3.out' })
  .from('.subtitle', { y: 30, opacity: 0, duration: 0.8 }, '-=0.5')
  .to('.cta-button', { scale: 1.08, repeat: -1, yoyo: true, ease: 'sine.inOut' });

Why Choose GSAP?

  • Best Suited For: Production-grade marketing sites, creative portfolio showcases, Awwwards-style scroll storytelling, and complex interactive web applications requiring precise multi-step choreography.
  • Trade-offs: Slightly larger bundle footprint than micro-animation utilities, but unmatched in capability, reliability, and cross-browser stability.

Comments & Discussion

0 comments
Share your experience, thoughts, or suggestions...

No comments yet. Be the first to share your experience or thoughts!

Related libraries

Curated by category & stack