GSAP

The industry-standard JavaScript animation library for tweening CSS, SVG, canvas, and UI with rock-solid cross-browser reliability.

Library
npm
v3.15.0
28,667 stars
Standard 'no charge' license (GreenSock, non-OSI)

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
42 /100 Fair
Development Activity 8
Maintenance 0
Community 60
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
79 /100 Good
Architecture 85
Code Quality 62
Innovation 80
Learning Curve 88

GSAP (GreenSock Animation Platform) is a framework-agnostic JavaScript animation engine that lets developers animate almost anything a browser can render: CSS properties, SVG attributes, canvas objects, colors, strings, and generic JavaScript objects. At its core it’s a high-precision property manipulator that updates values over time with far tighter control and better performance characteristics than CSS transitions or jQuery-based animation.

It ships with zero dependencies and a plugin architecture that adds advanced capabilities on demand — scroll-driven animation via ScrollTrigger, drag interactions via Draggable, SVG morphing, motion-path animation, and text splitting — without bloating the core bundle for projects that don’t need them. Originally a paid-tier product for advanced plugins, GSAP (including all previously members-only plugins) became fully free in 2024 under GreenSock’s sponsorship by Webflow.

What You Get

  • A core gsap object with to(), from(), fromTo(), and set() methods for tweening any numeric, color, or string property on DOM elements or plain JS objects
  • Timeline sequencing for choreographing multiple tweens with precise relative or absolute offsets, labels, and nested timelines
  • ScrollTrigger plugin for scroll-linked animations, pinning, and scrubbing, plus the companion ScrollSmoother for buttery inertial scrolling
  • Draggable, Flip, MotionPathPlugin, MorphSVGPlugin, SplitText, and Observer for drag interactions, FLIP-based layout transitions, SVG morphing, motion-path animation, text splitting, and normalized input events
  • gsap.matchMedia() for building responsive, accessibility-aware animations that adapt or disable based on media queries and prefers-reduced-motion
  • A dedicated @gsap/react package exposing a useGSAP() hook as a drop-in replacement for useEffect/useLayoutEffect with automatic cleanup

Common Use Cases

  • Scroll-driven marketing and landing pages (parallax sections, pinned panels, scroll-scrubbed reveals) built with ScrollTrigger
  • Choreographed multi-element UI sequences — modals, onboarding flows, hero sections — using Timeline for exact relative timing
  • SVG icon and illustration animation, including shape morphing between arbitrary paths with MorphSVGPlugin
  • Drag-and-drop interfaces, sortable lists, and swipeable carousels built on the Draggable plugin
  • Animating React/Vue component state transitions via the useGSAP() hook or direct gsap.to() calls in lifecycle hooks

Under The Hood

Architecture: GSAP’s core sits in src/gsap-core.js (~3,250 lines), organized around a class hierarchy — Animation as the shared base, with Timeline and Tween both extending it — plus supporting classes GSCache (per-target property-value caching to avoid redundant DOM reads) and PropTween (the atomic unit that interpolates one property over time). Context and MatchMedia layer on top to provide scoped cleanup and responsive matchMedia()-driven animation registration. Everything else — CSSPlugin, ScrollTrigger, Draggable, Flip, MorphSVGPlugin, and roughly two dozen other plugins in src/ — registers itself into the core via gsap.registerPlugin(), so the core stays small and plugins are opt-in via explicit imports (import ScrollTrigger from "gsap/ScrollTrigger"), enabling tree-shaking in bundler-based builds.

Tech Stack: The published package is zero-dependency vanilla JavaScript (98.6% JS, 1.4% TypeScript by byte count) with hand-written .d.ts type declarations under types/ (no dependence on a build-time type generator). The repo ships pre-built output in both dist/ (UMD, for <script>/CommonJS consumption) and esm/ (ES modules, tree-shakeable) — this GitHub repository is effectively a release mirror of the npm package rather than the primary development repo, which explains the single squashed commit history.

Code Quality: No test suite is present in this repository (consistent with it being a distribution mirror rather than the dev repo); code style is consistent across the ~30 source files, with descriptive class and method names (GSCache, PropTween, matchMedia) and inline comments marking non-obvious tree-shaking protections (e.g. to protect from tree shaking in index.js). Error handling favors silent no-ops and sensible defaults over throwing, matching its use in visual/animation contexts where a broken tween shouldn’t crash a page.

API Design: The public API is intentionally minimal and consistent — nearly every plugin and core feature is driven through the same gsap.to(target, vars) / gsap.timeline() vocabulary, so learning one plugin transfers directly to the next. gsap.registerPlugin() is the single explicit step required before using any plugin, which keeps the mental model simple at the cost of one extra line per plugin. TypeScript types are comprehensive and cover the full plugin surface, including discriminated RegisterablePlugins unions.

Used by 11 apps in this directory

JavaScript
90%
Other

CodeSandbox

Code Editors · Developer Tools

13,650

Instantly ready browser-based IDE that runs full npm dependency resolution and transpilation entirely client-side, with no server needed.

View details
67
Repo Health
76
Technical
62
Dependency
Built with
JavaScript 90%
Updated 3 weeks ago
Go
64%
MIT

hoop

Monitoring · Security

823

A wire-protocol gateway that enforces data masking, command blocking, approval workflows, and full session recording for engineers and AI agents accessing production infrastructure.

View details
85
Repo Health
80
Technical
64
Dependency
Built with
Go 64%
Clojure 17%
JavaScript 11%
Updated 1 weeks ago
TypeScript
87%
Apache 2.0

HyperFrames

AI Design Tools · AI Development

53,695

Turn plain HTML and CSS into deterministic, pixel-perfect MP4 videos — authored by humans or AI agents, rendered by headless Chrome and FFmpeg.

View details
84
Repo Health
83
Technical
65
Dependency
Built with
TypeScript 87%
JavaScript 12%
Updated 4 days ago
TypeScript
98%
MIT

isoflow

Design Tools · Developer Tools

1,718

A React component that lets developers embed a fully-featured, isometric network diagram editor directly into their applications.

View details
41
Repo Health
72
Technical
70
Dependency
Built with
TypeScript 98%
Updated 1 years ago
TypeScript
44%
Other

Magic

AI Agents · Automation · Low Code Platforms

5,043

Magic is an enterprise-grade open-source AI agent platform combining a generalist AI agent, workflow engine, IM, and collaborative office system for running an AI-powered digital workforce.

View details
70
Repo Health
79
Technical
65
Dependency
Built with
TypeScript 44%
PHP 32%
Updated 1 months ago
TypeScript
93%
MIT

OpenReel Video

Video Editors

5,211

A browser-based, GPU-accelerated video editor with multi-track timelines, color grading, and 4K export — no uploads, no installs, no watermarks.

View details
66
Repo Health
80
Technical
74
Dependency
Built with
TypeScript 93%
Updated 1 months ago
TypeScript
82%
MIT

OpenScreen

Design Tools · Note Taking · Productivity

39,963

Free, open-source screen recorder with zooms, annotations, and system audio capture

View details
52
Repo Health
85
Technical
78
Dependency
Built with
TypeScript 82%
Updated 3 months ago
TypeScript
94%
Apache 2.0

Openship

Devops · Hosting Control Panel

12,979

Openship is an open-source, self-hostable deployment platform that points at a repo and builds, ships, routes, and TLS-terminates the app — driven from a desktop app, web dashboard, or CLI.

View details
84
Repo Health
85
Technical
65
Dependency
Built with
TypeScript 94%
Updated 5 days ago
Python
75%
AGPL 3.0

OpenViking

AI Development · AI Memory · Databases

38,819

An open-source context database that gives AI agents a unified filesystem for memory, resources, and skills with hierarchical tiered retrieval.

View details
85
Repo Health
75
Technical
64
Dependency
Built with
Python 75%
Rust 12%
Updated 4 days ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers