Viewing a saved revision (read-only)
Thg3MMyq4Nbm0iu3__kFy
Scrollytelling Starter
A minimal React scrollytelling example with three placeholder steps and one SVG circle. Scroll down or up to change the active step.
App.jsx: placeholder narrative and visualization.Scrollytelling.jsx: reusable layout with a render prop receiving the zero-based active step.useActiveStep.js: native scroll detection relative to the scroll container.styles.css: sticky graphic and responsive layout.
The graphic has no knowledge of scrolling. Replace it with any React or D3 visualization driven by the active step. The dedicated scroll container works independently of the embedding page. On narrow screens the graphic sticks above the text and the trigger line moves below it.
No additional dependencies or external data are used. The original React + D3 starter helper files remain unused.