Comparison

svg-scroll-draw
vs ScrollMagic.

ScrollMagic is 5.9 KB against our 10 KB, so on raw numbers it wins — but that figure buys you scroll *detection* only. ScrollMagic has no animation engine: to actually move anything you pair it with GSAP through its animation.gsap plugin, which puts the real total well past ours. That is the comparison worth making, and it is the one this page makes.

Short version: Pick ScrollMagic if you already have GSAP in the bundle and want its scene/controller model. Pick this if you would rather not ship two libraries to animate one element.

$npm i svg-scroll-draw
23 live examples →

01

Size.

ScrollMagic is smaller on its own and we are not going to pretend otherwise. The number that matters for a page that actually animates something is ScrollMagic plus an animation engine.

scrollmagic 2.0.9
5.9 KB
smaller
svg-scroll-draw 2.10.0
10 KB
yours

Minified + gzipped at level 9, measured 2026-08-14 against scrollmagic 2.0.9 and svg-scroll-draw 2.10.0. scrollmagic is MIT OR GPL-3.0+.

02

Feature matrix.

Feature
svg-scroll-draw
ScrollMagic
Detects scroll position / triggers
Animates without a second library

ScrollMagic delegates animation — typically to GSAP via animation.gsap, or to Velocity

SVG path draw

Only via GSAP DrawSVG

Text split + stagger
Number counters
Video scrub
Pin / sticky sections
Section snapping
Native CSS fast path

ScrollMagic predates animation-timeline: view() by about a decade

Framework wrappers

jQuery plugin only

8
TypeScript types shipped

Community types exist on DefinitelyTyped

Tree-shakeable entry points
Debug indicators

Both ship a visual debug overlay — ScrollMagic via its debug.addIndicators plugin

Bundle size (gzipped)

ScrollMagic alone. Add GSAP core + ScrollTrigger to animate anything and it is 45+ KB on top.

10 KB
5.9 KB

✓ supported · ✗ not supported · ~ partial or requires extra work. Checked against scrollmagic 2.0.9.

03

When ScrollMagic is the right call.

The scene/controller model

ScrollMagic’s Scene and Controller abstraction is genuinely expressive for complex multi-trigger pages, and some teams prefer thinking in scenes.

You already ship GSAP

If GSAP is in the bundle regardless, ScrollMagic adds only 5.9 KB on top and reuses an animation engine you have already paid for.

A decade of answers

ScrollMagic has been around since 2014. Almost any question has a Stack Overflow answer already.

04

Questions.

Is ScrollMagic still maintained?

The npm package was last published 2026-06-25. It is a stable, finished library rather than an abandoned one — but it predates modern scroll APIs, so it uses scroll listeners rather than IntersectionObserver and has no path to the native CSS scroll timeline.

Does ScrollMagic need GSAP?

For animation, effectively yes. ScrollMagic detects scroll and manages scenes; it does not interpolate values. The standard setup adds GSAP through the animation.gsap plugin, so the practical bundle is ScrollMagic plus GSAP core plus ScrollTrigger.

What is a modern ScrollMagic alternative?

svg-scroll-draw covers detection and animation in one 10 KB package with zero dependencies, eight framework wrappers, shipped TypeScript types, and a native CSS fast path. GSAP ScrollTrigger is the other obvious answer and is broader still.