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
27,814stars
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 →
43/100Fair
Development Activity12
Maintenance0
Community60
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
79/100Good
Architecture85
Code Quality62
Innovation80
Learning Curve88

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 9 apps in this directory

JavaScript
90%
Other

CodeSandbox

Code Editors · Developer Tools

13,633

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

View details
65
Repo Health
76
Technical
63
Dependency
Built with
JavaScript90%
Updated 1 months ago
Go
62%
MIT

hoop

Security · Monitoring

791

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
86
Repo Health
80
Technical
66
Dependency
Built with
Go62%
Clojure20%
JavaScript10%
Updated yesterday
TypeScript
89%
Apache 2.0

HyperFrames

AI Development · AI Design Tools

41,625

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
82
Repo Health
83
Technical
65
Dependency
Built with
TypeScript89%
Updated today
TypeScript
98%
MIT

isoflow

Design Tools · Developer Tools

1,688

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
TypeScript98%
Updated 11 months ago
TypeScript
82%
MIT

OpenScreen

Design Tools · Note Taking · Productivity

39,869

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

View details
78
Repo Health
85
Technical
78
Dependency
Built with
TypeScript82%
Updated 2 months ago
TypeScript
93%
Apache 2.0

Openship

Devops · Hosting Control Panel

11,078

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
82
Repo Health
85
Technical
65
Dependency
Built with
TypeScript93%
Updated today
Python
74%
AGPL 3.0

OpenViking

Databases · AI Development

29,711

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

View details
84
Repo Health
75
Technical
65
Dependency
Built with
Python74%
Rust14%
Updated today
Python
67%
Apache 2.0

Polar

Ecommerce · Developer Tools · Invoicing Finance

10,199

Open source payments infrastructure that turns software into a business — subscriptions, usage-based billing, digital products, and merchant-of-record compliance in one platform.

View details
90
Repo Health
82
Technical
71
Dependency
Built with
Python67%
TypeScript26%
Updated today
TypeScript
71%
Apache 2.0

Supabase

Developer Tools · Databases · Search

108,148

The open-source Postgres development platform that replaces Firebase with authentication, real-time APIs, edge functions, storage, and vector embeddings — all built on PostgreSQL.

View details
90
Repo Health
91
Technical
66
Dependency
Built with
TypeScript71%
MDX26%
Updated today

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

Search