comparison / svg-scroll-draw vs aos vs scrollrevealmeasured 2026-08-14

svg-scroll-draw vs AOS vs ScrollReveal

Already on AOS or ScrollReveal? Change one import. svg-scroll-draw/aos reads your existing data-aos markup with no aos.css; svg-scroll-draw/scrollreveal runs your ScrollReveal().reveal() calls under MIT instead of GPL-3.0. Every AOS effect runs live, with its markup to copy, on AOS animation examples.

AOS and ScrollReveal.js put animation config in HTML data attributes. svg-scroll-draw puts it in JavaScript — typed, traceable, and part of a full scroll platform. Both of them are smaller than us, and both do less; the numbers below are measured so you can decide which trade you want.

AOS → drop-in
6.7 → 3.2 KB
ScrollReveal → drop-in
5.6 → 4.7 KB
ScrollReveal licence
GPL-3.0 → MIT
Migrate
1 import
Measuresvg-scroll-draw2.31.0AOS2.3.4ScrollReveal4.0.9
Gzip6.1 KB reveal · 11.9 KB all6.7 KB js + css5.6 KB
LicenceMITMITGPL-3.0
Configured inA typed JS callHTML data attributesA JS call
Last publish2026-08-142022-06-132022-06-26
Beyond revealDraw, pin, snap, text, videoNoNo
Drop-in/aos 3.2 KB · /scrollreveal 4.7 KB——
fig. 1 — three libraries, one sheet · ✓ where one is clearly ahead
01drop-in · aos

Switch from AOS in one line.

Keep every data-aos, data-aos-offset, data-aos-anchor-placement and custom animation you wrote. Delete aos.css: the styles ship inside the module. The browser suite runs AOS 2.3.4 and the drop-in side by side on the same page in Chromium, Firefox and WebKit, and checks that the same elements animate at the same scroll positions with the same computed styles.

  1. ABundler

    npm5 lines
    - import AOS from 'aos';
    - import 'aos/dist/aos.css';
    + import AOS from 'svg-scroll-draw/aos';
    
    AOS.init({ once: true });
  2. BNext.js layout

    app/layout.tsx (Next.js)8 lines
    import { AOSInit } from 'svg-scroll-draw/aos/react';
    
    // A Server Component is fine: the entry is "use client".
    // Initialises on mount, cleans up on unmount (StrictMode-safe),
    // and picks up [data-aos] content from route changes.
    export default function RootLayout({ children }) {
      return <html lang="en"><body><AOSInit once />{children}</body></html>;
    }
  3. CLet the CLI do it

    terminal3 lines
    # or let it do the edits: imports, script tags, aos.css, package.json
    npx svg-scroll-draw migrate --dry-run
    npx svg-scroll-draw migrate
  4. DCDN script tag

    index.html3 lines
    <!-- remove the aos.js script and the aos.css link, then: -->
    <script src="https://unpkg.com/svg-scroll-draw/dist/cdn/aos.global.js"></script>
    <script>AOS.init();</script>

Differences, on purpose

  1. 1prefers-reduced-motion shows every element in its final state.
  2. 2disable: 'mobile' checks viewport width rather than the user agent.
  3. 3Positions are re-measured on load so late images do not shift triggers.
  4. 4There is a destroy() for single-page apps.
  5. 5AOS 3's mirror, anchorPlacement, aos:in / aos:out events and class name options work too.
02drop-in · scrollreveal

Switch from ScrollReveal, keep your code.

ScrollReveal is GPL-3.0, with a paid licence for commercial work, and has not shipped since 4.0.9. The drop-in is an independent MIT implementation of the same API: every option, sequences, reset, viewFactor, callbacks, clean / sync / destroy. The browser suite runs ScrollReveal 4.0.9 beside it in Chromium, Firefox and WebKit and checks that every element's inline styles match byte for byte at every scroll stop. 4.7 KB, against 5.6 KB.

  1. ABundler

    npm4 lines
    - import ScrollReveal from 'scrollreveal';
    + import ScrollReveal from 'svg-scroll-draw/scrollreveal';
    
    ScrollReveal({ distance: '40px' }).reveal('.card', { interval: 80 });
  2. BCDN script tag

    index.html3 lines
    <!-- replace the scrollreveal script with: -->
    <script src="https://unpkg.com/svg-scroll-draw/dist/cdn/scrollreveal.global.js"></script>
    <script>ScrollReveal().reveal('.card');</script>
03weigh-in

Bundle size.

N.B.

Read the right row. The AOS drop-in is 3.2 KB with its styles, against AOS's 6.7 KB. But AOS and ScrollReveal are both smaller than svg-scroll-draw’s main entry. They also do considerably less — neither draws SVG paths, pins, snaps, splits text or scrubs video. If all you need is fade-up-on-scroll, they are a perfectly good choice and you should use them. Our svg-scroll-draw/reveal entry point is 6.1 KB if you want just that piece — that is the number worth comparing, not the 11.9 KB figure for every API at once.

scrollreveal 4.0.9smallestGPL-3.05.6 KB
aos 2.3.4 (js+css)MIT6.7 KB
svg-scroll-draw/scrollrevealdrop-inthe ScrollReveal drop-in4.7 KB
svg-scroll-draw/aosdrop-inthe AOS drop-in, css incl.3.2 KB
svg-scroll-draw/reveallike-for-likescrollReveal alone6.1 KB
svg-scroll-draw (all APIs)yours2.31.0 · every API at once11.9 KB
AOS → its drop-inΔ 3.5 KB
fig. 2 — the weigh-in, to scale · they are lighter than our main entry, heavier than the drop-ins

All sizes minified + gzipped at level 9, measured 2026-08-14 against aos 2.3.4, scrollreveal 4.0.9, svg-scroll-draw 2.31.0 — measured, not estimated. AOS includes its stylesheet (2.1 KB), which you need.

042 tasks

Side-by-side API.

4.1

Fade up on scroll

AOS

index.html8 lines
<!-- HTML attribute on every element -->
<div data-aos="fade-up"
     data-aos-once="true">
  Content
</div>

<!-- Init in JS -->
AOS.init({ duration: 800 });

ScrollReveal.js

app.js9 lines
// ScrollReveal.js 4.0.9 (GPL-3.0)
const sr = ScrollReveal({
  origin: 'bottom',
  distance: '32px',
  duration: 800,
  once: true,
});

sr.reveal('.card');

svg-scroll-draw

app.js12 lines
import { scrollReveal }
  from 'svg-scroll-draw/reveal';

// One import. One call.
scrollReveal('.card');

// Custom config:
scrollReveal('.card', {
  from:    { opacity: 0, y: 32 },
  stagger: 0.08,
  once:    true,
});
4.2

Stagger cascade

AOS

index.html7 lines
<!-- AOS: delay per element in HTML -->
<div data-aos="fade-up"
     data-aos-delay="0">A</div>
<div data-aos="fade-up"
     data-aos-delay="100">B</div>
<div data-aos="fade-up"
     data-aos-delay="200">C</div>

ScrollReveal.js

app.js4 lines
sr.reveal('.card', {
  interval: 100,
  origin:   'bottom',
});

svg-scroll-draw

app.js3 lines
scrollReveal('.card', {
  stagger: 0.1, // seconds
});
0521 rows

Feature matrix.

refFeaturesvg-scroll-drawAOSScrollReveal.js
Fade up / down / left / right
Scale reveal
3D flip (rotateX / rotateY)
Custom from state (x, y, scale…)
Stagger (cascade)
Custom easing functionAOS ships 8 named CSS easings; ScrollReveal takes any CSS timing function. Only we take a JS easing function (createSpring/createBounce/createElastic).
CSS-only config (data attributes)
TypeScript typesNeither ships its own .d.ts; both have community types on DefinitelyTyped (@types/aos, @types/scrollreveal).
Tree-shakeable sub-imports
scrollAnimate (any CSS property)
scrollPin / sticky sections
scrollSnap
scrollText (split + stagger text)
scrollVideo (scrub)
scrollProgress (CSS variable)
scrollHorizontal sections
Honours prefers-reduced-motion by defaultTrue for scrollReveal. Not a blanket claim across every API here — scrollHorizontal opts out by design. Neither AOS nor ScrollReveal references prefers-reduced-motion in its published bundle.
React / Vue / Svelte wrappers
Last publishedDates from npm, read 2026-08-14. Both are stable, finished libraries rather than abandoned ones — weigh that how you like.2026-08-142022-06-132022-06-26
LicenseScrollReveal is GPL-3.0, which is a real consideration for a closed-source commercial product. AOS is MIT, same as us.MITMITGPL-3.0
Bundle size (gzipped)Measured 2026-08-14 at gzip level 9 against aos 2.3.4 and scrollreveal 4.0.9. Both are smaller than us — see below.11.9 KB6.7 KB5.6 KB

Supported Not supported Partial or extra setup

06The set

More comparisons.

07Verdict

One import, and you’re done

No data attributes. No config files. No separate CSS import. Works in React, Vue, Svelte, Solid, Astro, Nuxt.