compare / vs locomotive scrollmeasured 2026-08-1414 rows

svg-scroll-draw vs Locomotive Scroll

These two are close in size — 9.3 KB against our 11.9 KB — and easy to mistake for alternatives, but they do different jobs. Locomotive Scroll v5 is a smooth-scroll and scroll-detection layer built on Lenis: it eases the scroll itself and applies classes or progress values as elements pass through the viewport. It does not interpolate SVG paths, split text or scrub video. If you want the momentum feel, you want Locomotive or Lenis. If you want things to animate, you want this.

24 live examples →
svg-scroll-draw
11.9 KB
Locomotive Scroll
9.3 KB
Only here
4 of 14
Only Locomotive Scroll
2 of 14
01size

What each figure measures

These are close enough in size that the number is not the argument. What differs is what you get for it: smooth scrolling and triggers, versus an animation engine.

itemPackageVersionLicenceLast publishgzip
01svg-scroll-drawVersion2.31.0LicenceMITpublished2026-08-1411.9 KB
02locomotive-scrollVersion5.0.1LicenceMITpublished2026-01-159.3 KB

Minified + gzipped at level 9, measured 2026-08-14 against locomotive-scroll 5.0.1 and svg-scroll-draw 2.31.0. locomotive-scroll is MIT.

locomotive-scroll: npm pack locomotive-scroll@5.0.1 && gzip -9 package/bundled/locomotive-scroll.min.js — Roughly our size. v5 is a smooth-scroll and scroll-detection layer built on Lenis — it applies classes and reports progress, it does not animate SVG paths, split text or scrub video.

0214 rows

Feature matrix

Σboth 4only here 4only Locomotive Scroll 2
#Featuresvg-scroll-drawLocomotive Scroll
01Smooth / eased scrollingNot something we do or plan to — it is Lenis’s job, and Lenis needs no adapter to work with usNot supportedSupported
02In-view detectionSupportedSupported
03Scroll progress valueOurs is exposed as a CSS custom property so you can drive CSS without a callbackSupportedSupported
04SVG path drawSupportedNot supported
05Animate arbitrary CSS propertiesLocomotive applies classes and progress; the animating is left to your CSSSupportedPartial
06Text split + staggerSupportedNot supported
07Number countersSupportedNot supported
08Video scrubSupportedNot supported
09Pin / sticky sectionsdata-scroll-sticky (v4) covers the basic caseSupportedPartial
10ParallaxSupportedSupported
11Horizontal scroll sectionsSupportedSupported
12Config in HTML attributesA genuine preference difference, not a defect either wayNot supportedSupported
13Framework wrappers8Not supported
14Bundle size (gzipped)Locomotive’s bundled build, which includes Lenis11.9 KB9.3 KB

Supported SupportedNot supported Not supportedPartial Partial or requires extra workChecked against locomotive-scroll 5.0.1.

03where locomotive scroll wins

When Locomotive Scroll is the right call

  1. W1

    Smooth scrolling

    The momentum feel is the entire point of Locomotive and we do not compete with it. If that is what you are after, use Locomotive or Lenis directly.

  2. W2

    Attribute-driven setup

    data-scroll attributes mean no JavaScript per element. If your team prefers configuration in markup, that is a real advantage.

  3. W3

    It is Lenis underneath

    v5 rebuilt on Lenis, so you get a well-maintained smooth-scroll core rather than a bespoke scroll hijack.

04questions

Questions

Q1

Is Locomotive Scroll an alternative to svg-scroll-draw?

Not really — they solve different problems. Locomotive smooths the scroll and reports when elements enter view; svg-scroll-draw animates SVG paths, text, counters and video against scroll position. Many sites want both.

Q2

Can I use Locomotive Scroll with svg-scroll-draw?

Yes, with no adapter. Locomotive v5 is built on Lenis 1.x, which moves the real scroll position on every frame (its setScroll() calls scrollTo()), so window.scrollY follows the smooth scroll and our engines, the native CSS path included, read the correct value.

Q3

Which is smaller?

Locomotive Scroll is 9.3 KB and svg-scroll-draw is 11.9 KB for every API at once, measured at gzip level 9. They are close enough that size should not decide it — scope should.

05Other comparisons

Other comparisons