Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Scroll Chapters

Long pages told chapter by chapter: a pinned stage, sliding panels, a text crawl, lit paragraphs, stacking cards and drifting columns, checked in a real browser for dead scroll.

範例 · 3

Northbound No. 9
在新分頁開啟

在沙箱框架中執行,無法存取此頁面。

線上執行

免費

在 SandBase sandbox 中執行 Scroll Chapters 的範例,並在此立即查看結果。

您可獲得什麼

Turn a long page into scroll-driven chapters with nine dependency-free modules: a pinned stage with a scroll timeline, full-screen panels that slide over each other, a perspective text crawl, word-by-word lit paragraphs, stacking cards, opposing marquee rows, a pinned heading over drifting picture columns, reveals and a chapter rail. A browser check then scrolls the page and reports dead scroll, modules that never move, unlit words, overflow and text that disappears without JavaScript or with reduced motion.

運作方式

  1. 01

    Plan the chapters

    Scroll Chapters starts with a plan file: one line per chapter saying what the reader sees, why it comes now and which module carries it. Pick one signature, a pinned stage, sliding panels or a text crawl, and two to four supporting modules such as lit paragraphs, stacking cards, opposing marquees, drifting picture columns, reveals or a chapter rail.

  2. 02

    Build plain HTML first

    Paste the kit's CSS and JavaScript into the page, write each chapter as plain HTML, then add data-ch attributes for motion. The modules only add motion, so the page must read without them. Signature pictures should fill the screen at 16:9 and at least 1920 pixels wide. Styling of type, colour and spacing is yours.

  3. 03

    Run the browser check

    check.mjs renders at 1440 by 900 and 390 by 844 with touch, scrolls every module in quarter-viewport steps and reports unwired or static modules, dead scroll in pins, paragraphs that never fully light, overflow, console errors, text hidden without JavaScript or with reduced motion, rule breaks and slow frames, with screenshots. Fix every error and justify each warning.

常見問題

What does Scroll Chapters make?

Scroll Chapters turns a long page into scroll-driven chapters with nine dependency-free modules, plus a browser check that measures the rendered page. The demos are a fictional night-train story with a curtain-opening stage, an architecture annual with sliding project panels, and a catalogue of all nine modules on one page.

Why does Scroll Chapters allow only one signature?

Scroll Chapters limits each page to one signature module and at most four supporting ones, without repeats, so each screen of scrolling gives the reader one thing to notice. Too many effects compete. The check flags a second signature, extra supporting modules, repeats and pins longer than six viewports.

Will a Scroll Chapters page work without JavaScript?

Yes, it is designed to. Scroll Chapters modules add motion only on top of plain HTML, and the check reports any text that disappears without JavaScript or under reduced motion. That keeps the content readable for every visitor and for search engines.

Can Scroll Chapters generate pictures?

Scroll Chapters prefers your own pictures. If you want generated ones and have SandBase, the Agent finds a text-to-image model with sandbase discover, shows its price from sandbase inspect and generates only after you agree. Those image calls are billed to your SandBase account; see https://www.sandbase.ai/pricing for rates. Building and checking the page itself is local.

Does Scroll Chapters fit a framework project?

Yes. Scroll Chapters works in a framework when you import the two files once, keep the data-ch attributes in the markup and call the refresh function after client-side navigation or late layout changes. Run the check against your dev server URL. Pinned modules must stay out of wrappers with overflow or transforms.

What does Scroll Chapters not cover?

Scroll Chapters has no hero video, 3D or cursor effects; pair the page with a hero from another Skill. Headless Chrome frame timing is rough, so profile on a real phone before promising smoothness. It never invents facts for a real business, while fictional demos may invent names and numbers.