← All sectionsS12Scroll story

Live prototype

Implementation notes · what this section is and how to build it

What it is

A sticky frame on one side, a numbered timeline on the other: a line that fills as the page scrolls, the current step bright, the passed ones dimmed, the next ones faint; each step has its own frame and can carry a caption on the photo. The last step can sell — the page's product with its variant chips, or in Products mode the whole set: a product per step and a set card with a variant select per row, the total with the set discount and “Add the set”. This page runs the very section of the Extrême demo — /demo/scroll-story.css and /demo/scroll-story.js — on the three demos' tokens. Switch the demo in the top bar. Tech and Inova show their regenerated product photos; Tech's are square, so its section runs Ratio 1:1.

How it works

  • From 1024 px the frame sticks in the middle of the screen under the header; the activation line is its centre. A step turns current when its marker crosses that line, and the line's fill follows it continuously.
  • The buy step sits one step below the last one; its card hugs its content and the section ends on the card's foot, flush with the frame's foot — the line's last stretch is spread so the buy step lights as the section ends.
  • Chips pick the variant — its price, its frame and the form's id. In the set, a row's select swaps that row's photo (and its cell in the set's frame), its price and the total; “Add the set” sends the rows' variants in one /cart/add.js.
  • Below 1024 px there is no sticky frame: each step shows its own photo and the line runs on the left.
  • Reduced motion: the line is full, the current step still follows the scroll.
  • The stylesheet reads only the scheme's tokens, so the same CSS serves Extrême's dark scheme and Tech's and Inova's light ones.

Section settings

  • Eyebrow, heading (the outline keyword in Extrême)
  • Mode: Story / Products · Width: Narrow (1280, centred) / Page · Media position: Left / Right · Ratio 4:5 / 1:1 · Markers: Numbers / Dots · colour scheme · padding
  • Block step: image, caption + note, heading, text, product
  • Block buy: product, label; in Products mode also title and set discount

Spec

Reference