changelog / release historyv2.31.0

Changelog

Every release of svg-scroll-draw, newest first — what each version added, what it fixed and how it was tested, as it was written at the time

Latest
v2.31.0
Releases
69
Entries
321
Fixes
64
v0.1.0 — 9 entries, 0 fixedv0.2.0 — 4 entries, 0 fixedv0.3.0 — 7 entries, 0 fixedv0.4.0 — 8 entries, 0 fixedv0.6.0 — 8 entries, 0 fixedv0.6.2 — 3 entries, 0 fixedv0.7.0 — 6 entries, 0 fixedv1.0.0 — 6 entries, 1 fixedv1.1.0 — 4 entries, 0 fixedv1.2.0 — 9 entries, 0 fixedv1.3.0 — 5 entries, 0 fixedv1.4.0 — 4 entries, 0 fixedv1.5.0 — 6 entries, 0 fixedv1.6.0 — 5 entries, 0 fixedv1.7.0 — 6 entries, 1 fixedv1.8.0 — 4 entries, 0 fixedv2.0.0 — 7 entries, 0 fixedv2.2.0 — 7 entries, 0 fixedv2.3.0 — 5 entries, 0 fixedv2.4.0 — 7 entries, 0 fixedv2.5.0 — 5 entries, 0 fixedv2.6.0 — 4 entries, 0 fixedv2.7.0 — 7 entries, 0 fixedv2.8.0 — 5 entries, 0 fixedv2.9.0 — 12 entries, 0 fixedv2.10.0 — 22 entries, 11 fixedv2.10.1 — 5 entries, 2 fixedv2.10.2 — 8 entries, 4 fixedv2.11.0 — 4 entries, 0 fixedv2.12.0 — 4 entries, 0 fixedv2.13.0 — 4 entries, 0 fixedv2.14.0 — 3 entries, 0 fixedv2.15.0 — 5 entries, 0 fixedv2.15.1 — 6 entries, 1 fixedv2.15.2 — 2 entries, 1 fixedv2.15.3 — 3 entries, 1 fixedv2.16.0 — 3 entries, 1 fixedv2.16.1 — 2 entries, 1 fixedv2.17.0 — 2 entries, 0 fixedv2.17.1 — 2 entries, 1 fixedv2.18.0 — 2 entries, 0 fixedv2.18.1 — 4 entries, 2 fixedv2.19.0 — 9 entries, 6 fixedv2.19.1 — 4 entries, 2 fixedv2.20.0 — 3 entries, 0 fixedv2.20.1 — 2 entries, 1 fixedv2.21.0 — 2 entries, 1 fixedv2.22.0 — 3 entries, 0 fixedv2.23.0 — 2 entries, 0 fixedv2.23.1 — 1 entries, 0 fixedv2.23.2 — 2 entries, 1 fixedv2.23.3 — 4 entries, 3 fixedv2.23.4 — 5 entries, 4 fixedv2.23.5 — 3 entries, 2 fixedv2.23.6 — 1 entries, 0 fixedv2.23.7 — 2 entries, 1 fixedv2.24.0 — 4 entries, 1 fixedv2.25.0 — 3 entries, 1 fixedv2.26.0 — 6 entries, 3 fixedv2.26.1 — 2 entries, 1 fixedv2.26.2 — 4 entries, 3 fixedv2.27.0 — 3 entries, 0 fixedv2.27.1 — 4 entries, 2 fixedv2.27.2 — 4 entries, 2 fixedv2.27.3 — 2 entries, 1 fixedv2.28.0 — 2 entries, 0 fixedv2.29.0 — 3 entries, 1 fixedv2.30.0 — 4 entries, 1 fixedv2.31.0 — 3 entries, 0 fixed
Fig. 1 — entries per release, oldest → newestAdded, tests, sitefixed · 64

rev. 69

v2.31.0

Handwriting on scroll

Added
1
Tests
1
Site & docs
1

latestnpm · v2.31.0 ↗

Added01

  1. 01

    svg-scroll-draw/write (7.0 KB, its own entry): scrollWrite('#signature') writes the element's text in a single-stroke font as the page scrolls, one stroke after another at one pen speed, the pen lifting between letters and at spaces. Script, roman and italic; the text stays readable to screen readers; written at once under reduced motion. writePaths() is the layout alone, for the server. The main entry stays 11.9 KB.

Tests01

  1. 01

    Unit tests of the layout, the pen timing and the element; browser tests of order and pace in a real window, a jump, once, a narrow parent, the accessible name and reduced motion; three new mutations, each caught.

Site & docs01

  1. 01

    /docs#write, with two lines written as you scroll.

rev. 68

v2.30.0

Subpaths one after another; waypoints in order on a jump

Added
1
Fixed
1
Tests
1
Site & docs
1

npm · v2.30.0 ↗

Added01

  1. 01

    svg-scroll-draw/subpaths (0.8 KB, its own entry): browsers restart the dash at every subpath, so a path with several Ms drew them all at once. splitSubpaths(target) splits each such path into one path per subpath and returns the target, so scrollDraw(splitSubpaths('#logo'), { stagger: 1 }) draws them one after another. The path keeps its first subpath, so a framework still finds its node; relative movetos are made absolute; joinSubpaths(target) puts the markup back exactly. Every other entry stays at its 2.29.0 size.

Fixed01

  1. 01

    A jump past several waypoints (the End key, an anchor link) fired them in the object's key order, integer keys first: 1, then 0.25, then 0.5. They fire lowest first now, as a slow scroll always did.

Tests01

  1. 01

    A browser test compares a jump past every window, and back, with the same page scrolled there in 60 steps, for once, reverse, waypoints, the native path, a counter, split text and a scrolling container: everything already matched but the waypoint order. Browser tests of the split in three engines, React and Vue through a re-render and an unmount; five new mutations, each caught.

Site & docs01

  1. 01

    /docs#subpaths, with a path drawn whole beside the same path split; this page now lists 2.28.0 and 2.29.0.

rev. 67

v2.29.0

scrollReveal stops restyling every card each frame

Added
1
Fixed
1
Tests
1

npm · v2.29.0 ↗

Added01

  1. 01

    progressVar on every API and framework component: false stops the per-frame write where nothing reads it. On by default everywhere but scrollReveal.

Fixed01

  1. 01

    scrollReveal no longer writes --scroll-draw-progress by default. The variable inherits, so every write restyled everything inside each card, every frame: a 60-card reveal took 76 ms of main-thread time, 41 ms without it (Chromium, 4x CPU slowdown, median of 7). Pass progressVar: true if your CSS reads it inside a revealed element.

Tests01

  1. 01

    Unit tests for the write on and off in scrollDraw, scrollAnimate and scrollReveal; flipping the reveal default back fails them.

rev. 66

v2.28.0

No finished drawing before the script runs

Added
1
Tests
1

npm · v2.28.0 ↗

Added01

  1. 01

    svg-scroll-draw/no-flash.css: an SVG in the page HTML is drawn in full until the engine sets its starting state, so a drawing on screen at load showed finished, then jumped back to empty. The stylesheet hides strokes inside any element marked data-scroll-draw-pending until the engine removes the mark, in the same task that sets the state. <ScrollDraw> in React and Vue renders the mark; elsewhere, write it in your markup.

Tests01

  1. 01

    A browser test records every frame until a late module runs: with the stylesheet no frame paints a stroke whole, in Chromium, Firefox and WebKit; without it the flash shows, so the test catches it.

rev. 65

v2.27.3

Wrapped text starts flush

Fixed
1
Tests
1

npm · v2.27.3 ↗

Fixed01

  1. 01

    scrollText kept every space in a white-space: pre span, so at the start of a wrapped line the space kept its width and each line after the first began one space in. Spaces are ordinary whitespace now, dropped at a line break as in any text.

Tests01

  1. 01

    A browser test wraps a words-mode and a chars-mode paragraph three or more times and checks every line starts flush; a mutation that puts the pre spans back fails it.

rev. 64

v2.27.2

Dev warnings in Vite; every framework sample runs

Fixed
2
Tests
1
Site & docs
1

npm · v2.27.2 ↗

Fixed02

  1. 01

    Dev warnings were off in every Vite app (Vue, Svelte, Solid, Astro, most React): the check needed a process global that Vite does not provide. It reads process.env.NODE_ENV as a literal now, which Vite replaces.

  2. 02

    scrollAnimate without props warns and does nothing instead of throwing, which took a Vue, Svelte or Solid component down with it.

Tests01

  1. 01

    A script that runs every framework sample in its framework and scrolls it, weekly in CI with every starter.

Site & docs01

  1. 01

    Eight framework samples did not work as printed (scrollAnimate given from, createScrollDraw destructured as an array, an Angular component missing its decorator, a Nuxt page with three roots). All 36 now run in their frameworks.

rev. 63

v2.27.1

Vue refs that bind; starters for Vue, Nuxt, SvelteKit and Solid

Added
1
Fixed
2
Tests
1

npm · v2.27.1 ↗

Added01

  1. 01

    Starters for Vue, Nuxt (with the module), SvelteKit and Solid in examples/, each opening on StackBlitz with nothing to install, linked from the framework pages.

Fixed02

  1. 01

    npx svg-scroll-draw init wrote a Vue file that never drew: it destructured a ref useScrollDraw does not return and bound it with :ref. It writes const container = useScrollDraw(…) and ref="container" now.

  2. 02

    Every Vue example (doc comments, README, docs, the Nuxt page, the Vue post) wrote :ref="el", which binds nothing in <script setup>; they write ref="el", and check:claims rejects the old form.

Tests01

  1. 01

    A test of the CLI's Vue output, and a CI job that builds a real Nuxt 4 and Nuxt 3 app with the module.

rev. 62

v2.27.0

A Nuxt module

Added
1
Tests
1
Site & docs
1

npm · v2.27.0 ↗

Added01

  1. 01

    A Nuxt module: modules: ['svg-scroll-draw/nuxt'] in nuxt.config, and every component and composable is auto-imported. Options under svgScrollDraw: prefix, components, composables. Nuxt 3 and 4, and still no dependencies: it adds entries through Nuxt's own hooks.

Tests01

  1. 01

    Unit tests of the module, and Nuxt 4.6 and 3.21 apps built with it, rendered on the server and scrolled in Chromium, Firefox and WebKit.

Site & docs01

  1. 01

    /nuxt-scroll-animation, its guide and the docs lead with the module; the guide is corrected on ScrollCounter server HTML and the six components the plugin registers.

rev. 61

v2.26.2

clip-path shapes, scrollSnap Next, scrollVideo range

Fixed
3
Tests
1

npm · v2.26.2 ↗

Fixed03

  1. 01

    scrollAnimate: clip-path shapes reach the page. inset() was written with commas, circle() lost its at and polygon() the % of a bare 0, so browsers dropped them and the element stayed unclipped. Values with functions now move number by number in their own syntax; the main entry is 11.8 KB gzipped (was 12.0).

  2. 02

    scrollSnap: Next pressed twice during one glide moves two sections (getCurrentIndex() returns the section being snapped to), and Next on the last section no longer fires onSnap again.

  3. 03

    scrollVideo keeps currentTime inside [from, to] under an overshooting easing such as spring or elastic.

Tests01

  1. 01

    Unit tests for each fix, a clip-path browser test in three engines, and one mutation.

rev. 60

v2.26.1

ScrollCounter renders its number on the server

Fixed
1
Tests
1

npm · v2.26.1 ↗

Fixed01

  1. 01

    <ScrollCounter> in React and Vue renders the final number in the server HTML instead of an empty span, so crawlers, readers without JavaScript and the first paint see the figure. The text is rendered once; the engine takes it over on mount.

Tests01

  1. 01

    A render-and-hydrate test in jsdom and in Chromium, Firefox and WebKit.

rev. 59

v2.26.0

scrollFrames for Svelte, Solid and Angular; CSS easing strings

Added
1
Fixed
3
Tests
1
Site & docs
1

npm · v2.26.0 ↗

Added01

  1. 01

    scrollFrames in svg-scroll-draw/svelte (scrollFramesAction, createScrollFrames), svg-scroll-draw/solid (useScrollFrames, createScrollFrames) and svg-scroll-draw/angular (ScrollFramesRef). Each binds to a canvas you write, warns in development when it has no name, keeps the film while its URLs are the same, reads callbacks live and takes triggerElement as an element or a selector.

Fixed03

  1. 01

    easing: 'cubic-bezier(…)' is the curve you wrote, in every engine; it used to run as linear (or the engine’s default) without a word. The keyword ease works too, and the native CSS path gets the same curve. Any other string, such as a typo, warns in development; steps() is not parsed, so pass a function for a stepped curve.

  2. 02

    In WebKit, a path not drawn yet no longer shows a dot where a round or square cap was: the dash’s gap is now twice the path length, in scrollDraw (both engines), timelines and Cinematic.

  3. 03

    createLenisAdapter’s destroy() puts the browser’s own window.scrollY and pageYOffset back instead of deleting them, which had left window.scrollY undefined.

Tests01

  1. 01

    95 unit tests, 15 browser tests per engine and 14 mutations, each caught.

Site & docs01

  1. 01

    The Lenis docs, /lenis-scroll-animation and the Locomotive Scroll comparison now say what Lenis does: every release so far is 1.x, which scrolls the real page, so it needs no adapter. data-scroll-sticky is labelled as Locomotive v4.

rev. 58

v2.25.0

<ScrollFrames> for React and Vue

Added
1
Fixed
1
Tests
1

npm · v2.25.0 ↗

Added01

  1. 01

    <ScrollFrames> in svg-scroll-draw/react and svg-scroll-draw/vue (Nuxt re-exports it, and Vue has useScrollFrames): it renders the canvas with role="img", takes every scrollFrames option as a prop, and stops the film when it unmounts. In development it warns when the canvas has no aria-label. A frames function is compared by the URLs it gives, so an inline one keeps the film through a re-render; it is re-created only when the URLs or the options change, and its callbacks are always the latest. triggerElement takes a ref in React (read when the film starts) and a selector in Vue. The scroll image sequence generator’s React tab writes the component.

Fixed01

  1. 01

    Before release, from review: a frames function replaced by a list of the same URLs keeps a working film instead of throwing.

Tests01

  1. 01

    27 unit tests, 8 browser tests per engine and five mutations, each caught.

rev. 57

v2.24.0

scrollFrames: an image sequence scrubbed on a canvas

Added
1
Fixed
1
Tests
1
Site & docs
1

npm · v2.24.0 ↗

Added01

  1. 01

    svg-scroll-draw/frames: scrollFrames(canvas, { frames, count }) draws frame round(progress × (count − 1)) of an image sequence as the page scrolls, the Apple product-page film. Frames load coarse to fine (the first, the last, then the middle of every gap, 6 at a time) and the nearest loaded one shows until the right one arrives; the canvas is redrawn only when the frame changes, sized to its box × devicePixelRatio (capped at 2), with fit: 'cover' or 'contain' and triggerElement for a pinned stage. Under reduced motion only the last frame is loaded and drawn. 4.0 KB gzipped.

Fixed01

  1. 01

    Before its first release, from an independent review: a canvas sized by its own width and height attributes keeps its box instead of growing every frame, nothing runs after destroy(), and a callback or frames function that throws cannot stall the loader.

Tests01

  1. 01

    47 unit tests, 19 browser tests per engine and nine mutations, each caught.

Site & docs01

  1. 01

    A free scroll image sequence generator (/scroll-image-sequence-generator): frames from a video, your own images or a demo sequence, previewed and written as code. A new recipe, /examples/scroll-frames, and the Groundtrack showcase site, on 71 frames of NASA’s public-domain Landsat 8 model.

rev. 56

v2.23.7

Cinematic paints the frame a jump calls for

Fixed
1
Tests
1

npm · v2.23.7 ↗

Fixed01

  1. 01

    A Cinematic story jumped past (the End key, an anchor link, a restored scroll) kept its first frame: its frames ran only while an IntersectionObserver saw the sticky stage. It follows its scroll window through the same frame gate as every other engine, measured once and again on a layout change instead of every frame.

Tests01

  1. 01

    Seven unit tests and a Cinematic story in the jump spec in three engines; one mutation, caught.

rev. 55

v2.23.6

The npm page leads with line drawing

Site & docs
1

npm · v2.23.6 ↗

Site & docs01

  1. 01

    The package README and description, the page npm shows, lead with SVG line drawing on the browser’s own scroll timeline and the one-line switch from AOS, ScrollReveal and vivus. No library code changed.

rev. 54

v2.23.5

Every engine paints the frame a jump calls for

Fixed
2
Tests
1

npm · v2.23.5 ↗

Fixed02

  1. 01

    scrollDraw (JS path), scrollCounter, scrollText, scrollVideo, scrollProgress, scrollDrawTimeline and useScrollDrawProgress run their frames from the trigger window, as scrollAnimate does since 2.23.4: a jump across a whole window (End, an anchor link, a restored scroll) paints the end frame and fires onComplete. Outside every window a scroll requests no frame and reads no layout.

  2. 02

    scrollDrawTimeline replay() restarts the frames after pause() or seek(); threshold and rootMargin apply to autoplay only.

Tests01

  1. 01

    A browser spec of every engine after a jump, an idle test with 280 engines below the fold, and nine mutations, each caught.

rev. 53

v2.23.4

Parallax and reveals keep up with their own motion; replay() resumes

Fixed
4
Tests
1

npm · v2.23.4 ↗

Fixed04

  1. 01

    scrollAnimate (and scrollParallax, scrollReveal, scrollHorizontal on it) runs its frames from the trigger window, not an IntersectionObserver that saw the element’s own transform: a parallax layer that left its clip no longer freezes, a fade-up from below the fold no longer starts late, and a jump across the whole window paints the end and fires onComplete.

  2. 02

    replay() after pause() or seek() follows the scroll again in scrollAnimate, scrollCounter, scrollText and scrollVideo; scrollCounter’s destroy() removes --scroll-draw-progress; useScrollDrawProgress measures a scrollContainer as the engines do.

  3. 03

    scrollSnap starts from the section the page is on, measures a container inside its border, is not fought by scroll-behavior: smooth, and clamps offsets to the scroll range.

  4. 04

    morphTo to a longer outline ends drawn whole; a path with pathLength draws in step with the scroll; scrollText chars keeps emoji whole, words on one line, and long lines visible to the end; a seek() before a video loads is applied; <ScrollVideo> takes preload and poster.

Tests01

  1. 01

    44 unit tests and 29 browser tests per engine, each failing on 2.23.3 or guarding a case; 21 mutations, each caught. An independent review found two regressions in the fixes before release, fixed with tests.

rev. 52

v2.23.3

once plays an overshooting easing out, and autoplay keeps its clock

Fixed
3
Tests
1

npm · v2.23.3 ↗

Fixed03

  1. 01

    once: true with spring, elastic or any easing past 1 ends exactly on its target in scrollDraw, scrollAnimate, scrollReveal, scrollCounter, scrollVideo and useScrollDrawProgress. They held the eased value at its highest, so elastic froze on its peak (a counter to 1000 stopped on 1273) and bounce never dipped. With linear nothing changes.

  2. 02

    autoplay: true plays over its duration in every browser. With no callbacks and the default trigger it took the native scroll-timeline path, followed the page scroll and stopped where the scroll stopped. debug: true draws its trigger lines everywhere for the same reason.

  3. 03

    A blank trigger string means the default; a scrollContainer with a border is measured from inside it; clip with direction reverse starts fully shown.

Tests01

  1. 01

    37 unit tests and 9 browser tests per engine, each failing on 2.23.2; six mutations, each caught.

rev. 51

v2.23.2

Autoplay with a stagger finishes every path

Fixed
1
Tests
1

npm · v2.23.2 ↗

Fixed01

  1. 01

    With autoplay and a stagger, seek(), getProgress(), onProgress, --scroll-draw-progress and waypoints now span the whole run, duration × (1 + (n − 1) × stagger). seek(1) used to leave the later paths part-drawn, and progress said 1 while they were still drawing. Without a stagger nothing changes.

Tests01

  1. 01

    Five unit tests and a browser test of an autoplay drawing below the fold in three engines; two mutations, each caught.

rev. 50

v2.23.1

The npm README links every guide

Site & docs
1

npm · v2.23.1 ↗

Site & docs01

  1. 01

    The package README, the page npm shows, links the React, Next.js, Vue, Nuxt, Svelte, Solid, Angular and Astro guides and the GSAP, Framer Motion, Motion, AOS, Locomotive Scroll, ScrollMagic and Vivus comparisons. No library code changed.

rev. 49

v2.23.0

The drop-ins follow reduced motion live

Added
1
Tests
1

npm · v2.23.0 ↗

Added01

  1. 01

    The AOS, ScrollReveal and vivus drop-ins follow prefers-reduced-motion turned on while the page is open: every element shows at once with no transition, and a vivus drawing mid-play ends on its last frame and calls back once. One way, as in every engine; each listener goes with destroy().

Tests01

  1. 01

    A browser test per drop-in in three engines turns reduced motion on after load; three mutations (95 in all). About +0.14 KB per drop-in; aos is 3.2 KB.

rev. 48

v2.22.0

Reduced motion turned on mid-visit applies at once

Added
2
Tests
1

npm · v2.22.0 ↗

Added02

  1. 01

    Every engine read prefers-reduced-motion once, at start-up, so a reader who turned it on while the page was open kept every animation until a reload. Now drawings, reveals, parallax, split text, counters, scrubbed video, Cinematic stories and useScrollDrawProgress finish the moment it changes, exactly as a page loaded under reduced motion shows them. onComplete fires once for an effect that had not finished, not again for one that had, and the instance you hold stays the same object.

  2. 02

    One way: turning it off again leaves everything finished until the next load, so nothing the reader has seen disappears. scrollSnap and the timeline’s loop still follow it both ways. The main entry is 11.7 KB (+0.3).

Tests01

  1. 01

    Browser tests in three engines turn reduced motion on after load, mid-drawing, mid-video and mid-story; nine mutations (92 in all, after two stale since 2.21.0 were fixed). A new anchor check in verify and CI catches a mutation that no longer applies in a second.

rev. 47

v2.21.0

Split text a screen reader can read

Fixed
1
Tests
1

npm · v2.21.0 ↗

Fixed01

  1. 01

    scrollText put the whole text in an aria-label on the element and hid every split piece, but ARIA forbids aria-label on a <p>, <span> or <div>, so a screen reader could read nothing. The text now goes in one visually hidden span the reader reads; the accessibility tree carries it exactly once. el.textContent now holds the text twice, and destroy() leaves an aria-label the page set alone.

Tests01

  1. 01

    Found by the site’s new axe check of every page. Accessibility-snapshot test in three engines, mutation text/readable (84 in all). The text entry is 3.2 KB.

rev. 46

v2.20.1

Resuming off screen finishes the drawing

Fixed
1
Tests
1

npm · v2.20.1 ↗

Fixed01

  1. 01

    A staggered drawing paused and resumed after it had left the screen mid-tail froze its later paths (1, 0.95, 0.7, 0.45) and never fired onComplete: resume() restarted the loop only on screen. resume(), replay() and refresh() now restart it whenever a path is still mid-window.

Tests01

  1. 01

    Found by a browser review of 2.19.1–2.20.0. A browser test in all three engines and a mutation (83 in all).

rev. 45

v2.20.0

Pin for screens, not pixels

Added
1
Tests
1
Site & docs
1

npm · v2.20.0 ↗

Added01

  1. 01

    scrollPin's pinDistance takes '150vh', measured as CSS measures 150vh: the pin zone follows a rotation or a window resize, but not a phone's address bar sliding in and out. pinDistance: window.innerHeight * 2 was measured once and kept the old screen's height. '600px' is 600, a number stays pixels, and leaving it out still means window.innerHeight.

Tests01

  1. 01

    Browser tests that resize the viewport and slide a simulated address bar, in all three browsers; five unit tests; two mutations, and three re-anchored that 2.19.0 had left stale (82 in all, each caught). The pin entry is 1.6 KB.

Site & docs01

  1. 01

    The pinned-feature-tour block (React, Vue and Svelte) uses it, and asks for svg-scroll-draw@^2.20.0 so an older copy is not left reading a string.

rev. 44

v2.19.1

A staggered drawing finishes

Fixed
2
Tests
2

npm · v2.19.1 ↗

Fixed02

  1. 01

    With stagger and the default trigger, the engine stopped as the drawing left the screen, so every later path froze short of 1 and onComplete never fired, on any page. It now follows the scroll off screen until the last path is done. Nothing on screen changes.

  2. 02

    Near the bottom of a page, a staggered drawing whose last window ended past where the page scrolls stopped part-drawn (measured 0.75 and 0.5 on the last two of four paths). Only then is the stagger tightened, evenly, so the last path finishes where the page ends; a page with room keeps the stagger as written.

Tests02

  1. 01

    A browser fixture for the end of the page, six tests in three browsers scrolled in 50px steps, five unit tests and two mutations (80 in all). Main entry 11.2 → 11.4 KB.

  2. 02

    Playwright 1.65.0 bundles Firefox 159, so Firefox runs both native-vs-JS parity suites on its fast path as shipped, no pref flipped; they fail if Chromium or Firefox stops taking it.

rev. 43

v2.19.0

Every engine follows the page

Added
1
Fixed
6
Tests
1
Site & docs
1

npm · v2.19.0 ↗

Added01

  1. 01

    <scroll-draw> and the Astro scanner follow their options, as the other wrappers do since 2.17.0; running an Astro init again keeps the engine it started. refresh() on scrollAnimate instances.

Fixed06

  1. 01

    scrollReveal, scrollAnimate (on its JS path, the only one in Firefox and Safari), scrollCounter, scrollProgress, scrollText, scrollDrawTimeline and scrollVideo re-measure when the layout moves, not only when the window resizes. With 480px arriving above them after load, every one of them used to run as if it had not.

  2. 02

    A re-measure leaves out the engine’s own transform, so scrollReveal’s fade-up no longer starts 32px late after a resize.

  3. 03

    getProgress() agrees with onProgress under stagger: both report the first path. They disagreed by up to 0.6.

  4. 04

    A window resized while scrollPin is pinned moves the element with its wrapper; it kept its old size and position until it unpinned.

  5. 05

    scrollParallax travel is a percentage of the layer’s own size, so a layer that grows after load travels its new height, not its first.

  6. 06

    React components put id, role, title, aria-* and data-* on the element instead of in the options. Vue’s <ScrollDraw> takes every option (it took 12 of 35), and an absent boolean prop stays absent instead of turning false.

Tests01

  1. 01

    A fixture with all seven engines under a layout that moves; framework fixtures that change the real attribute; 15 new mutations, 78 in all, each caught.

Site & docs01

  1. 01

    Each framework page has sections of its own on how its wrapper works, and quotes its own entry size. Four new blocks: a pinned feature tour, a horizontal case strip, a scrubbed video and a reading-progress bar. Every block now has a Vue and a Svelte version, installed with shadcn-vue or shadcn-svelte and run in a browser in CI.

rev. 42

v2.18.1

A strip that follows the page

Fixed
2
Tests
1
Site & docs
1

npm · v2.18.1 ↗

Fixed02

  1. 01

    scrollHorizontal re-measures when the window, the page, the track or its runway changes size, so a resize, a late image inside a panel or a hero loading above no longer leaves the strip short of its last panel, past it, or moving before the stage pins. A paused or seeked strip keeps its place.

  2. 02

    The default distance is the track minus the sticky stage it is seen through, not minus the window: a strip in a page container narrower than the window reaches its last panel, and a classic scrollbar no longer hides its last 15 px.

Tests01

  1. 01

    Four browser tests on all three engines, seven unit tests, and two new mutations: 63, each caught by the test named for it.

Site & docs01

  1. 01

    The horizontal scroll post is a full recipe: a case-study strip in five steps, its React and HTML files run in a browser in CI, and five ways it goes wrong, measured on the file.

rev. 41

v2.18.0

A film in a sticky stage

Added
1
Site & docs
1

npm · v2.18.0 ↗

Added01

  1. 01

    scrollVideo takes triggerElement: point it at the tall track behind a sticky stage and the film scrubs exactly while the stage is stuck, even across a resize mid-pin. The same option scrollAnimate has had.

Site & docs01

  1. 01

    Four examples are now full recipes: the logo, the pinned feature tour, the stat row and the pinned film, each with steps, the complete files run in a browser in CI, and the ways it goes wrong. /examples marks them and can filter to them.

rev. 40

v2.17.1

once keeps the stagger

Fixed
1
Site & docs
1

npm · v2.17.1 ↗

Fixed01

  1. 01

    With once and stagger together, every path drew as one and onComplete fired after the first: a single held value was shared by all paths. Each path now holds its own progress.

Site & docs01

  1. 01

    The logo example is a full recipe: four steps with a figure each, the complete component beside it running, the same logo as one HTML file, and five ways it goes wrong. The HTML file is run in a browser in CI.

rev. 39

v2.17.0

Wrappers follow option changes

Added
1
Tests
1

npm · v2.17.0 ↗

Added01

  1. 01

    The React, Vue, Nuxt, Solid and Svelte wrappers rebuild the animation when an option changes, and Angular gets update() for ngOnChanges. Options are compared by value, so an inline object recreated each render keeps the running animation, and callbacks are read live without a rebuild.

Tests01

  1. 01

    The browser suite checks both halves on every engine: a changed speed reaches the running draw, and a re-render with equal options keeps the same engine.

rev. 38

v2.16.1

Server Components render the components

Fixed
1
Tests
1

npm · v2.16.1 ↗

Fixed01

  1. 01

    svg-scroll-draw/react ships with "use client", so a Next.js Server Component can render <ScrollDraw>, <ScrollAnimate> and the rest directly; only options that are functions, such as onProgress, still need a client component of your own. The drop-ins’ React hooks already carried it.

Tests01

  1. 01

    A unit test reads the built files: every React entry starts with the directive and no shared chunk does. The demo renders <ScrollDraw> from a Server Component, so its build fails without the directive. Three mutations whose code had moved (reveal stagger, video scrub and direction) point at it again, so all 56 run.

rev. 37

v2.16.0

Entries share one engine

Added
1
Fixed
1
Site & docs
1

npm · v2.16.0 ↗

Added01

  1. 01

    ES module entries share code through chunks instead of each bundling its own copy of the engine. Main + /react drops from 18.1 to 13.2 KB as shipped files; an app on five entries drops from 16.3 to 9.4 KB under Vite and from 22.8 to 10.2 KB under webpack. Published paths, exports and the CommonJS, CDN and CLI builds are unchanged.

Fixed01

  1. 01

    The drop-ins and their React hooks share one instance under ESM: AOS.refresh() from svg-scroll-draw/aos now reaches the instance useAOS started, and the same holds for the ScrollReveal and vivus hooks.

Site & docs01

  1. 01

    Entry sizes now count every chunk an entry imports, as shipped files — the way the compared libraries are measured. With no bundler each entry pays 0.1–0.5 KB for the lines that join it to its chunks (main 10.7 KB); through a bundler none grew, and scrollPin went from 1.6 to 1.4 KB. Both READMEs’ size tables are generated and checked.

rev. 36

v2.15.3

scrollReveal’s stagger cascades

Fixed
1
Tests
1
Site & docs
1

npm · v2.15.3 ↗

Fixed01

  1. 01

    scrollReveal’s stagger works. It was documented in seconds but moved each trigger by a few pixels (about 2.5px at the default), and a custom trigger switched it off. It is now a fraction of the reveal window: each element in a row starts that far into its neighbour’s reveal (default 0.15), rows are read from the layout so long lists are not pushed down the page, and the offset applies on top of a custom trigger. The reveal entry is 4.7 KB gzipped.

Tests01

  1. 01

    Six unit tests pin the trigger window each element gets; the browser cascade test now runs at the default stagger and requires a visible step, and a row with a custom trigger must cascade too.

Site & docs01

  1. 01

    The native option’s documentation no longer says the draw runs on the compositor: browsers repaint stroke-dashoffset on the main thread. What the native path removes is the per-frame JavaScript.

rev. 35

v2.15.2

scrollVideo keeps its end frame under reduced motion

Fixed
1
Tests
1

npm · v2.15.2 ↗

Fixed01

  1. 01

    scrollVideo under prefers-reduced-motion: the clip shows its last frame once, as documented, but the scroll loop started anyway when the video came into view and — with no trigger window measured — sought it back to frame 0. The loop now returns early under reduced motion, so the end frame stays.

Tests01

  1. 01

    A browser test turns reduced motion on, scrolls the clip into view at three positions and expects the last frame each time, in Chromium, Firefox and WebKit. It fails on 2.15.1.

rev. 34

v2.15.1

Dev warnings read the computed stroke

Fixed
1
Tests
1
Site & docs
3
Build & CI
1

npm · v2.15.1 ↗

Fixed01

  1. 01

    No more "Element has no stroke" for paths stroked from CSS. The development check read only the stroke attribute, so every path styled with a class, a stylesheet or Tailwind’s stroke-current was reported as invisible while it drew perfectly well — on this project’s own homepage, hundreds of warnings per page load. It now reads the computed stroke, reports a stroke that CSS turns off, and is skipped outright in production builds.

Tests01

  1. 01

    Three unit tests for the computed-stroke check, and the CDN dev-build fixture now carries paths stroked from a stylesheet and from an attribute that must stay silent in Chromium, Firefox and WebKit.

Site & docs03

  1. 01

    Homepage redesign — every drawing on the new homepage is something people build with the library, inked by the library over a faint pencil underdrawing and annotated with real values. Dark is now the site default.

  2. 02

    Migration guides at /guides — AOS in Next.js and React, ScrollReveal in React and Next.js, vivus in React — each leading with npx svg-scroll-draw migrate, the hook, a StackBlitz starter and what stays the same.

  3. 03

    The live project stats print when their numbers were fetched, so a failed hourly refresh can no longer serve a stale copy quietly.

Build & CI01

  1. 01

    Vercel builds no longer run out of memory: vercel-build builds the library four tsup configs at a time, peaking around 1.2 GB instead of 4 GB, with byte-for-byte identical output.

rev. 33

v2.15.0

React and Next.js hooks for the drop-ins

Added
3
Tests
1
Site & docs
1

npm · v2.15.0 ↗

Added03

  1. 01

    svg-scroll-draw/aos/react — useAOS(options, refreshKey?) and <AOSInit />. Initialises on mount and destroys on unmount, which is what StrictMode and route changes trip up in hand-written effects; refreshKey re-measures.

  2. 02

    svg-scroll-draw/scrollreveal/react — useScrollReveal(options) returns a ref and reveals that element, or its selector children for interval sequences, cleaning up on unmount.

  3. 03

    svg-scroll-draw/vivus/react — useVivus(options, callback) returns [ref, vivus] and destroys the instance on unmount.

Tests01

  1. 01

    A React 18 app in StrictMode with a state-driven route change runs all three hooks in Chromium, Firefox and WebKit; dropping useAOS’s cleanup fails it. Checked separately in a real Next.js 16 App Router app.

Site & docs01

  1. 01

    examples/aos, examples/scrollreveal and examples/vivus — pages written for the original library with only the import changed, opening on StackBlitz with no install.

rev. 32

v2.14.0

One command to migrate

Added
2
Tests
1

npm · v2.14.0 ↗

Added02

  1. 01

    npx svg-scroll-draw migrate switches a project from AOS, ScrollReveal or vivus to the drop-ins in one command: imports, requires and CDN script tags point at the matching entry, AOS’s stylesheet is removed and package.json swaps the dependencies. It touches module names, URLs and dependency entries only, previews with --dry-run, and will not write over uncommitted changes without --force.

  2. 02

    npx svg-scroll-draw help; an unknown command now says so instead of starting init.

Tests01

  1. 01

    The AOS and ScrollReveal parity specs wait for the reference library and the drop-in to agree at each scroll stop instead of reading both after one fixed wait. A real difference never converges, so breaking AOS’s anchor-placement rule still fails at the exact element.

rev. 31

v2.13.0

A drop-in for vivus

Added
1
Tests
1
Site & docs
1
Build & CI
1

npm · v2.13.0 ↗

Added01

  1. 01

    svg-scroll-draw/vivus — a drop-in replacement for vivus 0.4, which has not shipped since April 2021. new Vivus(element, options, callback) and every method, option, animation type, start mode and timing function behave as in 0.4.6, quirks included.

Tests01

  1. 01

    vivus 0.4.6 runs beside the drop-in in Chromium, Firefox and WebKit across nine configurations, and every generated path and dash value must match exactly at eleven points of the animation.

Site & docs01

  1. 01

    /vs-vivus comparison page. Competitor entries can now carry their own measuredOn date.

Build & CI01

  1. 01

    npm run verify and CI build the library before typechecking the demo, which resolves svg-scroll-draw through dist/ and was being checked against whatever an earlier build left there.

rev. 30

v2.12.0

A drop-in for ScrollReveal, under MIT

Added
2
Tests
2

npm · v2.12.0 ↗

Added02

  1. 01

    svg-scroll-draw/scrollreveal — a drop-in replacement for ScrollReveal.js 4, under MIT (ScrollReveal is GPL-3.0 and has not shipped since 4.0.9). Every method and option, including interval sequences, reset, viewFactor and the four callbacks, writing the same inline styles, data-sr-id and sr class.

  2. 02

    Deliberate differences: nothing runs on import, and reduced motion shows the final state with no transition.

Tests02

  1. 01

    ScrollReveal 4.0.9 runs beside the drop-in in all three engines, and every element’s style attribute, data-sr-id and callback history must match exactly.

  2. 02

    The idle-cost browser test counts work instead of timing it. Its millisecond ceiling flaked in Firefox under load with nothing regressed; it now counts update runs, and removing the idle short-circuit fails it in all three engines.

rev. 29

v2.11.0

A drop-in for AOS

Added
2
Tests
1
Site & docs
1

npm · v2.11.0 ↗

Added02

  1. 01

    svg-scroll-draw/aos — a drop-in replacement for AOS. Existing data-aos markup runs with no aos.css: init, refresh, refreshHard, every data-aos-* attribute and the stylesheet’s transforms, matched rule for rule against AOS 2.3.4, plus AOS 3’s mirror, anchorPlacement and events.

  2. 02

    Deliberate differences: reduced motion shows the final state, disable: 'mobile' checks viewport width, positions re-measure on load, and destroy() exists for single-page apps.

Tests01

  1. 01

    AOS 2.3.4 and the drop-in run side by side in Chromium, Firefox and WebKit, and the animated set must match at every scroll stop, down and back up, across three init() configurations.

Site & docs01

  1. 01

    /vs-aos leads with "Switch from AOS in one line".

rev. 28

v2.10.2

Copy-paste blocks, and the right types for ESM

Added
2
Fixed
4
Tests
1
Site & docs
1

npm · v2.10.2 ↗

Added02

  1. 01

    Copy-paste blocks at /blocks — signature draw, reveal cards, stat counter row, sticky feature, headline text reveal — each one React + Tailwind file, installed with the shadcn CLI.

  2. 02

    An agent skill in skills/svg-scroll-draw/, with API, recipes and GSAP-migration references.

Fixed04

  1. 01

    TypeScript resolved the wrong types for ESM users: every export pointed types at the CommonJS .d.ts. Each export now has import → .d.mts and require → .d.ts, and attw reports no problems.

  2. 02

    scrollVideo re-seeked the video on every frame while it was visible, keeping the decoder seeking about 60 times a second on a page at rest. It now seeks only when the target time changes.

  3. 03

    scrollPin missed the pinned element itself growing; the element is now observed as well as the wrapper and the document.

  4. 04

    <scroll-draw once> was ignored. The element now reads the attribute, and once="false" reads as off.

Tests01

  1. 01

    A firefox-native e2e project turns on Gecko’s scroll-driven animations and runs both native-vs-JS parity suites, failing if the fast path does not engage.

Site & docs01

  1. 01

    Every page title is 60 characters or fewer, and /react-scroll-animation no longer lists a React hook that does not exist.

rev. 27

v2.10.1

The trust release

Added
1
Fixed
2
Site & docs
1
Build & CI
1

npm · v2.10.1 ↗

Added01

  1. 01

    examples/vanilla and examples/react — two starters that open on StackBlitz with no install.

Fixed02

  1. 01

    devtools showed "No active instances" for code imported from another entry: each built entry carried its own copy of the instance registry. It now lives on globalThis, created on first use.

  2. 02

    scrollDraw never registered with devtools at all, on any of its three paths, and neither did scrollAnimate’s native path, scrollSnap, scrollDrawTimeline or Cinematic. All do now, and unregister on destroy().

Site & docs01

  1. 01

    Claims corrected across the npm README and the site: the SplitText size and licence, an unmeasured coverage figure, the native fast path’s browser versions (Safari 26+, Firefox 159+), and the size multiple against GSAP, now the measured 4.4× against core + ScrollTrigger.

Build & CI01

  1. 01

    check-claims reads the npm README, the whole demo source and llms.txt, checks every per-API size against its built entry, and fails if a corrected claim comes back.

rev. 26

v2.10.0

What jsdom could not see

Added
6
Fixed
11
Tests
5

npm · v2.10.0 ↗

Added06

  1. 01

    refresh() on scrollDraw, scrollDrawTimeline and the group APIs — re-measure path lengths and the trigger window after a layout change that fires no resize, such as a tab switching or a font swapping inside a fixed-height box. scrollPin and scrollHorizontal already had it.

  2. 02

    respectReducedMotion on scrollDrawTimeline (default true), covering the time-driven loop only. Scroll scrubbing advances 1:1 with the user’s own input and keeps working; the loop replays off a timer with no scroll input at all, which is autonomous motion, and it had no check whatsoever.

  3. 03

    A development CDN build — svg-scroll-draw.dev.global.js. IS_DEV was derived from process.env.NODE_ENV, and process does not exist in a browser without a bundler, so every warning this library has was invisible to exactly the users with the fewest other diagnostics. The production CDN build now drops those warnings at build time instead of shipping and skipping them.

  4. 04

    triggerElement on scrollHorizontal and scrollAnimate — measure the trigger window from an element other than the animated one. Needed when the animated element is sticky-pinned and cannot supply the scroll length itself. Setting it disables the native CSS fast path, since animation-timeline: view() can only measure its own subject.

  5. 05

    respectReducedMotion on scrollAnimate (default true) and scrollHorizontal (default false). Horizontal scrubbing opts out deliberately: the transform advances only as the user scrolls, 1:1 with their input, so it is direct manipulation rather than motion that plays at them — and holding a final state instead would leave every panel but one unreachable inside the sticky overflow:hidden container, hiding the content from exactly the people who asked for less motion.

  6. 06

    A zero-length trigger window is now a development warning rather than a silently inert element. That is the defect class above: everything looks configured and nothing ever moves.

Fixed11

  1. 01

    Both native CSS fast paths ran a different easing curve from the JS engine they replace. ease-in and ease-out here are quadratics; the CSS keywords of the same name are fixed cubic-beziers, and they differ by up to 0.069 — around 7 points of progress mid-scroll. The fast path only engages where the browser supports animation-timeline: view(), so the same page animated one way in Chrome and Firefox and a measurably different way in Safari, which always falls back to the JS engine. scrollAnimate defaults to ease-out, so this was the default configuration. Both engines now emit a timing function that reproduces the JS curve exactly.

  2. 02

    The CDN bundle dropped the <scroll-draw> web component — caught before release, so no published version shipped without it. The sideEffects field added during this cycle listed only the built output, while the bundle is built from source, so the bundler tree-shook the custom element out of the very file the README tells CDN users to load. Verified against the published 2.9.0 tarball, which registers the element correctly.

  3. 03

    Importing svg-scroll-draw/web-component on a server threw ReferenceError: HTMLElement is not defined, taking the whole render down. The class is now defined inside the same guard as the registration, so it degrades to a no-op like every other entry point.

  4. 04

    A finished scrollDrawSequence or scrollAnimateSequence reported 0% progress: the active-step cursor walked past the end of the array, so getProgress() returned 0 at the exact moment everything had completed, and pause(), resume() and seek() became silent no-ops.

  5. 05

    Any re-measure while scrolled shifted the trigger window for custom scrollContainer callers. The element offset inside a scroll container already includes the scroll position, and it was being added a second time — so a resize mid-scroll moved the window by however far the user had scrolled. A scrollHorizontal strip scrubbed halfway snapped back to its first panel with no scrolling at all. Three engines had their own copy of the arithmetic, and all three of it.

  6. 06

    scrollHorizontal’s default distance ignored scrollContainer, subtracting the window width regardless — so inside a container narrower than the viewport the strip overshot the last panel and parked on empty space, and every nested-container caller had to pass distance by hand.

  7. 07

    split: 'lines' in scrollText threw away the spaces between words. It groups word spans by offsetTop and moved only the words, leaving behind the whitespace spans the splitter creates to hold the gaps open, so "Every word here" rendered as "Everywordhere". Only visible with real layout, which is why jsdom never saw it.

  8. 08

    scrollDrawTimeline.destroy() left every path frozen on its last frame, and with fade also half-transparent, for the rest of the page’s life. It now restores what it wrote, like every other module.

  9. 09

    scrollHorizontal never moved the track in its own documented setup. The default trigger window was measured against the track, and a position:sticky stage pins that track at exactly one stage tall — so both ends resolved to the same scroll position, clamping progress at 0 forever. It had 100% line coverage in jsdom the whole time it was broken: every rect there is 0, so the window is equally degenerate and looks identical to a working one. The trigger is now measured from the container that actually holds the scroll room.

  10. 10

    destroy() left the last animated frame’s inline styles on the element. Destroying anything mid-animation froze it there permanently — a card destroyed at 34% stayed at opacity 0.34 and offset by 21px for the rest of the page’s life, which is worse than never having animated it. Affects scrollReveal, scrollAnimate and scrollParallax, and it also made scrollReveal’s documented "restore original styles" untrue.

  11. 11

    scrollSnap fired onSnap twice for a single snap. The scroll event produced by its own animated scroll was treated as a fresh user gesture. Guaranteed under reduced motion and easing-dependent otherwise — a public callback that fires once or twice depending on the curve is worse than either.

Tests05

  1. 01

    Browser coverage for all eight framework wrappers — React, Vue, Solid, Svelte, Angular, Astro, Nuxt and the web component — mounted for real and held to one contract: the engine runs, unmounting stops it (no leaked observers, no leaked frame loop), re-mounting works, and option changes reach the engine only where the wrapper says they do. Roughly a thousand lines that had been excluded from coverage because jsdom cannot mount them.

  2. 02

    An SSR suite that runs with no DOM at all, covering every entry point: importing must not throw, and every public API must return an inert instance rather than reaching for document. Astro’s auto-init helpers defaulted their root to document at call time, so calling one from component frontmatter — on the server, which is Astro’s default — threw instead of doing nothing.

  3. 03

    Real-browser coverage for every entry point — 30 to 175 tests per engine on Chromium, Firefox and WebKit. Every API and all eight framework wrappers are now exercised in a real browser rather than in jsdom, where getTotalLength() is stubbed and every rect is 0. scrollVideo verifies the painted frame against currentTime by canvas readback; scrollProgress drives real calc() widths off its custom properties instead of reading the values back in JS.

  4. 04

    Mutation harness (scripts/mutation-check.mjs) — patches one line of source, rebuilds, and requires the single test named for that behaviour to fail. 56 mutations, all caught, including a regression guard for every fix in this release.

  5. 05

    Two test-harness faults that were producing false results: the "fixed" e2e viewport was silently overridden per browser project, leaving WebKit 100px shorter than the others, and the fixture server refused HTTP Range requests — which makes Chromium report media as non-seekable, so a correct scrollVideo looked completely inert.

rev. 25

v2.9.0

scrollProgress and scrollHorizontal

Added
3
Tests
1
Site & docs
8

npm · v2.9.0 ↗

Added03

  1. 01

    scrollProgress (svg-scroll-draw/progress) — expose scroll progress as CSS custom properties (--scroll-progress, --scroll-progress-eased) on any element. Drive CSS animations, calc() expressions, and gradients with zero per-frame JS beyond the variable write.

  2. 02

    scrollHorizontal (svg-scroll-draw/horizontal) — drive translateX from vertical scroll. The Apple / Stripe horizontal scroll pattern. Supports distance, easing, trigger, onProgress, refresh().

  3. 03

    Lenis dist types — dist/lenis/index.d.ts and .d.mts shipped so svg-scroll-draw/lenis resolves TypeScript types without manual paths config.

Tests01

  1. 01

    16 new tests — scrollProgress (8), scrollHorizontal (7), + velocity (1 updated). Total: 423.

Site & docs08

  1. 01

    /vs-aos comparison page — svg-scroll-draw vs AOS vs ScrollReveal.js. 20-row feature matrix, side-by-side code, bundle bars.

  2. 02

    /vs-framer-motion comparison page — feature matrix, bundle comparison, side-by-side API, honest "when Framer Motion wins" section.

  3. 03

    /react-scroll-animation landing page — React-focused guide covering ScrollAnimate, ScrollText, ScrollCounter, ScrollPin components, hooks, and real-world patterns with copy-ready code.

  4. 04

    /nextjs-scroll-animation landing page — Next.js App Router guide covering SSR-safe usage, "use client" pattern, dynamic imports, and all v2 APIs.

  5. 05

    Blog post: "Horizontal scroll sections without GSAP" at /blog/horizontal-scroll-sections.

  6. 06

    Blog post: "Complete guide to scroll animations (2025)" at /blog/complete-guide-scroll-animations-2025. 12 patterns, all code included.

  7. 07

    Blog post: "Scroll animation performance" at /blog/scroll-animation-performance. Deep-dive on rAF budgets, native fast path, and avoiding layout thrash.

  8. 08

    Home page — "Compare" + "Framework guides" section linking to all comparison pages and the React/Next.js landing pages.

rev. 24

v2.8.0

scrollReveal, and speed from scroll velocity

Added
3
Tests
1
Site & docs
1

npm · v2.8.0 ↗

Added03

  1. 01

    scrollReveal (svg-scroll-draw/reveal) — one-line reveal animations. 7 presets (fadeUp/Down/Left/Right, scale, flip, flipX), custom from state (opacity, x, y, scale, rotate, rotateX, rotateY), stagger, easing, onEnter/onLeave. Drop-in replacement for AOS and ScrollReveal.js.

  2. 02

    velocityScale on scrollAnimate — scale animation speed by scroll velocity. Pass true (default sensitivity) or a number. Forces JS engine.

  3. 03

    ResizeObserver on scrollPin — auto-refresh pin dimensions when the element or document layout changes. No more manual refresh() calls on accordion/modal open.

Tests01

  1. 01

    19 new tests — scrollReveal (15), velocityScale (4). Total: 407.

Site & docs01

  1. 01

    Blog post: "Replace AOS / ScrollReveal.js" at /blog/replace-aos-scrollreveal.

rev. 23

v2.7.0

Callbacks, scrollPin, scrollSnap and Lenis

Added
4
Tests
1
Site & docs
2

npm · v2.7.0 ↗

Added04

  1. 01

    Scroll callbacks — onEnter, onLeave, onEnterBack, onLeaveBack added to both ScrollDrawOptions and ScrollAnimateOptions. Fire when scroll position crosses the trigger zone boundary in either direction. Forces JS engine.

  2. 02

    scrollPin (svg-scroll-draw/pin) — pin any element at a viewport position while the page scrolls past it. Wrapper-based layout (no layout shift). Supports pinDistance, top, all lifecycle callbacks, onProgress, refresh().

  3. 03

    scrollSnap (svg-scroll-draw/snap) — JS-powered section snapping with custom easing, configurable threshold, snapTo(index), getCurrentIndex(), and onSnap callback. Works on vertical and horizontal axes.

  4. 04

    createLenisAdapter (svg-scroll-draw/lenis) — Lenis v1 smooth-scroll adapter. Patches window.scrollY / window.pageYOffset with Lenis's virtual scroll value so all engines stay in sync. Lenis v2+ works out of the box without the adapter.

Tests01

  1. 01

    30 new tests — scrollCallbacks (6), scrollPin (11), scrollSnap (7), lenis (6). Total: 388.

Site & docs02

  1. 01

    /vs-gsap comparison page — bundle size bars, 20-row feature matrix, side-by-side API code for every major use case, license comparison, CTA.

  2. 02

    Blog post: "Pin sections on scroll without GSAP — scrollPin" at /blog/scroll-pin-without-gsap.

rev. 22

v2.6.0

The playground learns v2

Site & docs
4

npm · v2.6.0 ↗

Site & docs04

  1. 01

    Playground v2 tab — new "v2 ✦" tab in the SVG Playground with live interactive demos for scrollAnimate (5 effect presets, 5 easings, scrubber), scrollText (split/stagger/from-preset), and scrollCounter (4 format presets). Each panel has replay, scrubber, and a copy-ready code snippet.

  2. 02

    Blog post: "Animate multiple elements on scroll — one call" at /blog/scroll-animation-groups. Covers scrollAnimateGroup, scrollAnimateSequence, scrollParallaxGroup, scrollDrawGroup, scrollDrawSequence with real-world patterns for pricing grids, hero sections, and feature lists.

  3. 03

    README sub-path exports table updated — all v2 wrappers for Vue, Svelte, Solid, Angular, Astro, Nuxt, and group APIs documented.

  4. 04

    JSON-LD structured data on home page: softwareVersion updated from 1.2.0 to 2.6.0.

rev. 21

v2.5.0

scrollParallaxGroup, and every framework documented

Added
1
Site & docs
4

npm · v2.5.0 ↗

Added01

  1. 01

    scrollParallaxGroup — fan-out scrollParallax across multiple elements simultaneously. Same combined instance API as scrollAnimateGroup. Ships in svg-scroll-draw/group.

Site & docs04

  1. 01

    DocsPage Angular v2 — full docs for ScrollAnimateRef, ScrollCounterRef, ScrollVideoRef, ScrollTextRef with Angular component examples.

  2. 02

    DocsPage Nuxt v2 — useScrollAnimate, useScrollText, useScrollCounter composables + component wrappers + createScrollDrawPlugin. Full parity with Vue/Svelte/Solid docs.

  3. 03

    DocsPage Astro v2 — initScrollAnimate, initScrollText, initScrollCounter, initAll data-attribute API with full code examples.

  4. 04

    Desktop nav bug — burger menu was rendering on desktop across 7 pages (blog index, 5 blog posts, ExamplesPage). Wrapped all bare <MobileMenu /> in lg:hidden containers.

rev. 20

v2.4.0

Angular, Astro and Nuxt catch up; groups for scrollAnimate

Added
5
Site & docs
2

npm · v2.4.0 ↗

Added05

  1. 01

    Angular v2 wrappers — ScrollAnimateRef, ScrollCounterRef, ScrollVideoRef, ScrollTextRef classes. Same class-based init(element, options)/destroy() pattern as ScrollDrawRef. Ships in svg-scroll-draw/angular.

  2. 02

    Astro v2 — initScrollAnimate(), initScrollText(), initScrollCounter() data-attribute auto-init functions. Plus initAll() convenience that runs all four inits in one call. Ships in svg-scroll-draw/astro.

  3. 03

    Nuxt v2 — svg-scroll-draw/nuxt now re-exports all v2 Vue composables (useScrollAnimate, useScrollCounter, useScrollVideo, useScrollText) and components. createScrollDrawPlugin() globally registers all five components.

  4. 04

    scrollAnimateGroup — animate multiple HTML/SVG elements simultaneously with scrollAnimate options. Same fan-out + combined instance API as scrollDrawGroup. Ships in svg-scroll-draw/group.

  5. 05

    scrollAnimateSequence — animate multiple elements in strict sequence, each starting only after the previous reaches 100%. Ships in svg-scroll-draw/group.

Site & docs02

  1. 01

    ExamplesPage — three new v2 examples: Product Video Scrub (scrollVideo), Feature List Reveal (staggered scrollAnimate rows), Animate Group (scrollAnimateGroup fan-out).

  2. 02

    Blog post: "scrollAnimate in Vue 3, Svelte, and Solid.js — v2 framework guide" at /blog/vue-svelte-solid-v2. Covers composables, actions, hooks, component wrappers, real-world patterns, Nuxt plugin, Astro data-attributes.

rev. 19

v2.3.0

Vue, Svelte and Solid get the v2 APIs

Added
4
Site & docs
1

npm · v2.3.0 ↗

Added04

  1. 01

    Vue 3 v2 composables — useScrollAnimate, useScrollCounter, useScrollVideo, useScrollText. Each returns a ref to bind to any element. Ships in svg-scroll-draw/vue alongside the existing useScrollDraw.

  2. 02

    Vue 3 v2 components — <ScrollAnimate :options="...">, <ScrollCounter :to="...">, <ScrollVideo src="..." :options="...">, <ScrollText :options="..." tag="h2">. Ships in svg-scroll-draw/vue.

  3. 03

    Svelte v2 actions — scrollAnimate, scrollCounterAction, scrollVideoAction, scrollTextAction Svelte use: actions + createScrollAnimate, createScrollCounter, createScrollVideo, createScrollText helpers that expose getInstance(). Ships in svg-scroll-draw/svelte.

  4. 04

    Solid v2 hooks — useScrollAnimate, useScrollCounter, useScrollVideo, useScrollText returning ref setters + createScrollAnimate, createScrollCounter, createScrollVideo, createScrollText exposing getInstance(). Ships in svg-scroll-draw/solid.

Site & docs01

  1. 01

    ScrollTextInteractive demo — interactive home page section for scrollText: split mode picker (chars/words/lines), stagger slider (0–0.10), from-preset selector (Fade Up / Rotate In / Scale), scrubber, replay button, and live code block.

rev. 18

v2.2.0

scrollVideo, scrollText and devtools

Added
5
Tests
1
Site & docs
1

npm · v2.2.0 ↗

Added05

  1. 01

    scrollVideo — tie <video>.currentTime to scroll position. Ships as svg-scroll-draw/video. The Apple / Stripe product-page scrub pattern. Supports from/to in seconds, preload strategy, onReady callback, and the full pause/resume/seek/replay/getProgress instance API.

  2. 02

    scrollText — split any element into chars, words, or lines and stagger-animate each unit on scroll. Ships as svg-scroll-draw/text, a 2.5 KB alternative to GSAP SplitText. Accessibility: aria-label on container, aria-hidden on spans, destroy() restores original HTML.

  3. 03

    devtools overlay — ships as svg-scroll-draw/devtools. Fixed panel showing all active animation types (draw/animate/counter/video/text), progress bars, trigger-start/end lines on the page, color-coded by type. enable(), disable(), toggle(), highlight(el). Cmd/Ctrl+Shift+S keyboard shortcut. Zero production bytes (dev-only guard).

  4. 04

    Global instance registry (src/core/registry.ts) — all engines (animate, counter, video, text) self-register on init and unregister on destroy. DevTools reads the registry.

  5. 05

    ScrollVideo + ScrollText React components added to svg-scroll-draw/react.

Tests01

  1. 01

    36 new tests — scrollVideo.test.ts (17), scrollText.test.ts (19). 358 total across 12 suites.

Site & docs01

  1. 01

    Demo site — DocsPage v2.0–2.2 nav group with full option tables. Examples page: Pricing Card Reveal (scrollAnimate), Social Proof Strip (scrollCounter), Hero Headline Reveal (scrollText). Blog post: "Replace GSAP ScrollTrigger with scrollAnimate".

rev. 17

v2.0.0

Beyond SVG: scrollAnimate

Added
6
Tests
1

npm · v2.0.0 ↗

Added06

  1. 01

    scrollAnimate — animate any CSS property (opacity, transform, color, background-color, filter, or any unit-based value) on any HTML or SVG element driven by scroll. Direct replacement for gsap.to + ScrollTrigger for the 80% case. Interpolates numbers, hex/rgb colors, transform functions (multi-function string parsing), and CSS unit values.

  2. 02

    Native CSS fast path — for opacity/transform with named easing and default trigger, scrollAnimate injects animation-timeline: view() CSS instead of running JS on every frame. Automatically falls back to the JS engine when native is unsupported or the config uses callbacks, custom triggers, once, etc.

  3. 03

    scrollCounter — animate a number from from to to as the element scrolls into view. Custom format function, decimals shorthand, all standard easing. Ships in the main bundle.

  4. 04

    scrollParallax — move any element at speed × elementHeight pixels of travel. Negative speed reverses direction. Thin wrapper over scrollAnimate. Ships in the main bundle.

  5. 05

    ScrollAnimate + ScrollCounter React components added to svg-scroll-draw/react.

  6. 06

    interpolateValue utility exported — public helper for CSS value interpolation (numbers, colors, transforms, unit values).

Tests01

  1. 01

    50 new tests — scrollAnimate.test.ts (30), scrollCounter.test.ts (20). 322 total across 10 suites.

rev. 16

v1.8.0

Presets on the site

Site & docs
4

npm · v1.8.0 ↗

Site & docs04

  1. 01

    Changelog page — v1.4.0–v1.7.0 entries added with full release notes; "Latest" tag updated to v1.7.0.

  2. 02

    Examples page — new Presets card (14 examples total); PresetShowcase component shows all 5 presets side by side on the same SVG.

  3. 03

    Playground — Preset shortcut dropdown at the top of the Motion tab. Selecting a preset instantly applies its options to the current state.

  4. 04

    Blog post: "5 scroll animation patterns in under 10 lines" at /blog/5-patterns-under-10-lines. Covers all 5 presets with Vanilla JS + React code. Blog index now shows 4 posts.

rev. 15

v1.7.0

Timelines that loop

Added
2
Fixed
1
Tests
1
Site & docs
2

npm · v1.7.0 ↗

Added02

  1. 01

    scrollDrawTimeline loop option — after the scroll-driven animation completes, automatically replay as a time-driven loop with no further scroll input needed. loop: true = infinite, loop: number = N additional iterations.

  2. 02

    scrollDrawTimeline loopDuration option — duration of each time-driven loop iteration in ms (default 1500).

Fixed01

  1. 01

    doReset() now correctly resets currentAlpha to 0, so getProgress() returns 0 immediately after replay().

Tests01

  1. 01

    272 passing tests (5 new loop tests).

Site & docs02

  1. 01

    DocsPage updated — preset in Core Options, new Presets section, new CLI init section, timeline options fully documented (repeat, repeatDelay, loop, loopDuration, debug, label).

  2. 02

    README updated — Presets section with table, CLI in Install section, preset in options table, timeline table with all new options.

rev. 14

v1.6.0

Presets and the CLI

Added
3
Tests
1
Site & docs
1

npm · v1.6.0 ↗

Added03

  1. 01

    preset option — apply a named option bag as the base config. Five presets: sketch (staggered ease-in), reveal (fade + ease-out + once), typewriter (fast linear stagger), cinematic (slow ease-in-out + fade), spring (spring easing). User options always override.

  2. 02

    PRESETS export — the preset definitions are exported from the main package for inspection and extension.

  3. 03

    CLI init tool — npx svg-scroll-draw init scaffolds a ready-to-use starter file for React, Vue, Svelte, Solid, or Vanilla JS. Asks for framework, preset, easing, and selector.

Tests01

  1. 01

    267 passing tests (5 new preset tests).

Site & docs01

  1. 01

    Blog post: "Scroll-driven SVG path morphing with morphTo" at /blog/scroll-path-morphing.

rev. 13

v1.5.0

Timeline repeats and a debug HUD

Added
4
Tests
1
Site & docs
1

npm · v1.5.0 ↗

Added04

  1. 01

    scrollDrawTimeline repeat option — replay N times (or 'infinite') after completion with once: true. After delay, paths reset and animate again on next scroll-into-view.

  2. 02

    scrollDrawTimeline repeatDelay option — ms to wait before each repeat.

  3. 03

    scrollDrawTimeline debug option — inject a fixed HUD panel into document.body showing each track's scroll window as a coloured progress bar with live fill and global progress. Removed on destroy().

  4. 04

    scrollDrawTimeline label option — label shown in the debug panel header.

Tests01

  1. 01

    262 passing tests (8 new timeline tests).

Site & docs01

  1. 01

    Blog post: "Zero-JS SVG scroll animations with native CSS" at /blog/native-css-svg-scroll-animations.

rev. 12

v1.4.0

Cinematic stories

Added
3
Tests
1

npm · v1.4.0 ↗

Added03

  1. 01

    Cinematic class — the runtime bridge for Cinematic Studio. Reads a story.json and wires a scroll-scrubbed timeline with zero JS on the author's side. Import from svg-scroll-draw/cinematic.

  2. 02

    loadStory(story) — builds a sticky-stage scroll structure from the story, strokes draw paths across their scroll range, fades layers in. Honors prefers-reduced-motion.

  3. 03

    Story protocol types exported: Story, StoryScene, StoryAnimation, DrawAnimation, FadeAnimation, StoryEasing.

Tests01

  1. 01

    254 passing tests (5 new cinematic tests).

rev. 11

v1.3.0

Autoplay

Added
4
Tests
1

npm · v1.3.0 ↗

Added04

  1. 01

    autoplay option — trigger the animation on viewport enter instead of scroll. Draws over duration milliseconds, replays on each re-entry. Use once: true to play only the first time.

  2. 02

    duration option (number, default 1000ms) — controls how long the autoplay animation runs. Only used when autoplay: true.

  3. 03

    All existing visual options work in autoplay mode — easing, stagger, fade, strokeColor, strokeWidth, fillOpacity, clip, morphTo, waypoints, repeat, repeatDelay, direction, onStart, onComplete, onProgress.

  4. 04

    Full instance API in autoplay mode — pause/resume freeze/unfreeze elapsed time; seek(0–1) jumps to a fraction of duration; replay restarts from scratch.

Tests01

  1. 01

    249 passing tests (8 new) — autoplay draw, onStart, onComplete, seek, replay, destroy, clip mode, and once covered.

rev. 10May 2026

v1.2.0

Bounce and elastic easing

Added
3
Tests
1
Site & docs
5

npm · v1.2.0 ↗

Added03

  1. 01

    createBounce({ bounces, decay }) — bounce-out easing that rises to 1 then makes N dips before settling. Also available as the named string 'bounce'. Values stay within [0, 1]

  2. 02

    createElastic({ amplitude, period }) — elastic-out easing that overshoots past 1 and oscillates back. Also available as the named string 'elastic'. Based on the Penner elastic-out formula

  3. 03

    EasingName type updated — 'bounce' and 'elastic' are now valid TypeScript string values for the easing option

Tests01

  1. 01

    241 passing tests (20 new) — createBounce and createElastic covered across boundary values, curve shape, overshoot, and factory parameterization

Site & docs05

  1. 01

    Solid.js gallery demo on /examples — fine-grained reactivity graph (createSignal → createMemo → createEffect) in Solid brand blue

  2. 02

    Framework filter on /examples — pill strip (All / React / Vue 3 / Svelte / Solid / Vanilla / API) filters the 13-demo gallery client-side

  3. 03

    Page-specific OG images for /playground and /changelog; display:inline-block Satori crash fixed across all five OG images

  4. 04

    /blog/gsap-drawsvg-alternative — full SEO comparison page with bundle size chart, side-by-side code, 19-row feature matrix, and migration guide

  5. 05

    Playground easing dropdown now includes bounce and elastic with live parameter sliders (Bounces/Decay and Amplitude/Period)

rev. 09

v1.1.0

Native CSS scroll timelines

Added
2
Tests
1
Site & docs
1

npm · v1.1.0 ↗

Added02

  1. 01

    Native CSS scroll-driven rendering — on supporting browsers (Chrome, Edge, Firefox) the simple draw case runs on the compositor via animation-timeline: view() with zero per-frame JavaScript and no scroll/resize listeners

  2. 02

    native option (default true) — automatically uses the CSS fast path when eligible; pass false to always use the JS engine. The full instance API works on both paths

Tests01

  1. 01

    221 passing tests across 7 suites — engine-native.test.ts added to cover the native CSS path and fallback logic

Site & docs01

  1. 01

    Bundle size claim corrected to ~4.4 KB gzipped across all docs (stale "<3 KB" figure removed)

rev. 08

v1.0.0

Sequences fixed, and 1.0

Fixed
1
Tests
3
Site & docs
1
Build & CI
1

npm · v1.0.0 ↗

Fixed01

  1. 01

    scrollDrawSequence chain was broken — engines now created upfront and paused; each step resumes only when the previous fires onComplete. activeIdx tracks correctly so pause/resume/seek/getProgress always target the active step.

Tests03

  1. 01

    194 passing tests across 6 suites — engine, engine-options, group, timeline, framework wrappers (Angular, Astro, Svelte, Solid), and utilities

  2. 02

    Framework wrapper tests — Angular ScrollDrawRef, Astro initScrollDraw, Svelte scrollDraw action + createScrollDraw, Solid useScrollDraw + createScrollDraw

  3. 03

    Root workspace test runner — npx vitest run from the repo root works via vitest.workspace.ts

Site & docs01

  1. 01

    JSDoc improvements — clip, morphTo, and scrollDrawSequence document their non-obvious edge cases inline

Build & CI01

  1. 01

    CI coverage threshold enforcement — Node 20 + 22 matrix

rev. 07May 2026

v0.7.0

Timelines and createSpring

Added
3
Site & docs
3

npm · v0.7.0 ↗

Added03

  1. 01

    createSpring({ tension, friction }) — parameterize the spring easing instead of the hardcoded preset

  2. 02

    svg-scroll-draw/timeline — scrollDrawTimeline API for independent per-track scroll windows within a single range

  3. 03

    --scroll-draw-progress CSS custom property — set on the container every frame, drive CSS animations without JS callbacks

Site & docs03

  1. 01

    Docs page (/docs) — full API reference with sidebar navigation and IntersectionObserver-based active tracking

  2. 02

    Group & Sequence demos on the examples page

  3. 03

    Timeline API demo on the examples page

rev. 06May 2026

v0.6.2

fillOpacity

Added
3

npm · v0.6.2 ↗

Added03

  1. 01

    fillOpacity — animate fill opacity in sync with the stroke draw. Use [0, 1] to flood a fill as the outline traces itself

  2. 02

    useScrollDrawProgress React hook — reactive 0–1 scroll progress for any element, same trigger/easing API

  3. 03

    svg-scroll-draw/web-component subpath export — <scroll-draw> importable directly, not just via CDN

rev. 05May 2026

v0.6.0

Playback control, morphing and groups

Added
8

npm · v0.6.0 ↗

Added08

  1. 01

    Pause / Resume / Seek — full imperative playback control on every instance

  2. 02

    Path Morphing (morphTo) — interpolate a path's d attribute to a target shape on scroll

  3. 03

    Velocity Scale (velocityScale) — draw speed scales with scroll speed

  4. 04

    Repeat / RepeatDelay — replay N times or loop infinitely

  5. 05

    Astro adapter (svg-scroll-draw/astro) — data-attribute API with initScrollDraw()

  6. 06

    Nuxt adapter (svg-scroll-draw/nuxt) — useScrollDraw() composable for Nuxt 3

  7. 07

    Group API (svg-scroll-draw/group) — scrollDrawGroup and scrollDrawSequence

  8. 08

    Web Component — <scroll-draw> custom element, auto-registers via CDN

rev. 04May 2026

v0.4.0

Solid, Angular, colour and width

Added
8

npm · v0.4.0 ↗

Added08

  1. 01

    Solid.js adapter (svg-scroll-draw/solid) — useScrollDraw and createScrollDraw hooks

  2. 02

    Angular adapter (svg-scroll-draw/angular) — ScrollDrawRef class for AfterViewInit lifecycle

  3. 03

    Stroke color animation (strokeColor) — static or [from, to] interpolation

  4. 04

    Stroke width animation (strokeWidth) — static or [from, to] interpolation

  5. 05

    Auto Reverse (autoReverse) — follows scroll direction automatically

  6. 06

    Custom scroll container (scrollContainer)

  7. 07

    Waypoints — fire callbacks at specific 0–1 progress thresholds

  8. 08

    Delay option — milliseconds before the engine starts observing

rev. 03May 2026

v0.3.0

Svelte, horizontal scroll and spring easing

Added
7

npm · v0.3.0 ↗

Added07

  1. 01

    Svelte adapter (svg-scroll-draw/svelte) — use:scrollDraw action and createScrollDraw

  2. 02

    Horizontal scroll support (axis: "x")

  3. 03

    Replay API — instance.replay() to re-trigger imperatively

  4. 04

    Spring easing — physics-based overshoot-and-settle curve

  5. 05

    Once mode (once) — draw once and stay drawn

  6. 06

    Debug overlay (debug) — visualizes trigger zones in dev mode

  7. 07

    onStart lifecycle hook

rev. 02May 2026

v0.2.0

Vue 3 and the playground

Added
1
Site & docs
3

npm · v0.2.0 ↗

Added01

  1. 01

    Vue 3 adapter (svg-scroll-draw/vue) — <ScrollDraw> component and useScrollDraw composable

Site & docs03

  1. 01

    SVG Playground at /playground — live SVG editor with all options

  2. 02

    Interactive demo with easing and speed controls

  3. 03

    OpenGraph and Twitter preview card image URLs

rev. 01May 2026

v0.1.0

Initial release

Added
9

Initial releasenpm · v0.1.0 ↗

Added09

  1. 01

    Core scrollDraw() function — zero dependencies, ~3 KB gzipped

  2. 02

    React wrapper (svg-scroll-draw/react) — <ScrollDraw> component

  3. 03

    Easing curves — linear, ease-in, ease-out, ease-in-out

  4. 04

    Trigger system — element/viewport anchor strings

  5. 05

    Stagger, fade, direction, once, speed options

  6. 06

    IntersectionObserver viewport culling

  7. 07

    SSR safe — window guards, Next.js App Router compatible

  8. 08

    rect and circle support via perimeter approximation

  9. 09

    CDN IIFE bundle at dist/cdn/svg-scroll-draw.global.js