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.
- svg-scroll-draw
- 11.9 KB
- Locomotive Scroll
- 9.3 KB
- Only here
- 4 of 14
- Only Locomotive Scroll
- 2 of 14
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.
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.
Feature matrix
| # | Feature | svg-scroll-draw | Locomotive Scroll |
|---|---|---|---|
| 01 | Smooth / eased scrollingNot something we do or plan to — it is Lenis’s job, and Lenis needs no adapter to work with us | Not supported | Supported |
| 02 | In-view detection | Supported | Supported |
| 03 | Scroll progress valueOurs is exposed as a CSS custom property so you can drive CSS without a callback | Supported | Supported |
| 04 | SVG path draw | Supported | Not supported |
| 05 | Animate arbitrary CSS propertiesLocomotive applies classes and progress; the animating is left to your CSS | Supported | Partial |
| 06 | Text split + stagger | Supported | Not supported |
| 07 | Number counters | Supported | Not supported |
| 08 | Video scrub | Supported | Not supported |
| 09 | Pin / sticky sectionsdata-scroll-sticky (v4) covers the basic case | Supported | Partial |
| 10 | Parallax | Supported | Supported |
| 11 | Horizontal scroll sections | Supported | Supported |
| 12 | Config in HTML attributesA genuine preference difference, not a defect either way | Not supported | Supported |
| 13 | Framework wrappers | 8 | Not supported |
| 14 | Bundle size (gzipped)Locomotive’s bundled build, which includes Lenis | 11.9 KB | 9.3 KB |
Supported SupportedNot supported Not supportedPartial Partial or requires extra workChecked against locomotive-scroll 5.0.1.
When Locomotive Scroll is the right call
- 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.
- W2
Attribute-driven setup
data-scroll attributes mean no JavaScript per element. If your team prefers configuration in markup, that is a real advantage.
- W3
It is Lenis underneath
v5 rebuilt on Lenis, so you get a well-maintained smooth-scroll core rather than a bespoke scroll hijack.
Questions
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.
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.
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.