SCROLL STORY KIT · FREE SAMPLER
by Sundry Mill (https://sundrymill.com)

Three scroll driven page sections, free to use in your own sites:
- Inner parallax cards: card pictures that drift slower than their cards
- Chapter stack: chapter titles that stick and pile up as you read
- Big number chapters: huge outlined numerals that fill as each chapter passes

Each comes as plain HTML, CSS and JavaScript (no framework, no build step) and as a React component, in light
and dark, with a reduced motion layout where everything is still and readable.

The paid Scroll Story Kit holds 36 more sections (pinned feature walk, sticky device swap, horizontal gallery,
before and after wipe, stat scrub, a frame sequence drawn in canvas, pricing fan, an FAQ that unfolds and more),
3 example landing pages and full docs. These three sampler sections are not in the paid pack.


HOW TO USE

1. Copy core/ and the section folders you want into your site.
2. In the <head>:
     <link rel="stylesheet" href="core/sk-tokens.css">
     <link rel="stylesheet" href="core/sk-core.css">
     <link rel="stylesheet" href="sections/chapter-stack/chapter-stack.css">
     <script src="core/sk-scroll.js"></script>
   Load the script without defer: it sets the motion class on <html> before the first paint.
3. Paste the section's .html file where you want it on the page.
4. React: import the .jsx component and the same CSS files. Each .jsx imports core/sk-scroll.js itself.

Open demo.html through a local server (for example: npx serve) to see all three. Each section's README.md
lists its options, its accessibility notes and its limits.

Change colours, type and spacing in core/sk-tokens.css. Dark mode follows the system, or set
data-theme="dark" or data-theme="light" on <html>.

How the motion works: where the browser supports CSS scroll driven animations (animation-timeline: view()),
CSS does the work. Elsewhere core/sk-scroll.js (about 2 KB gzipped once minified) does the same maths with
IntersectionObserver and requestAnimationFrame. With prefers-reduced-motion, or with JavaScript off, every
section shows a still layout with every word readable.


LICENCE

Free for personal and commercial sites. You may not resell or redistribute the files. Full text in LICENCE.txt.
