Case scrollspy anatomy, Pattern Paste Canonical: https://patternpaste.com/pattern/case-scrollspy-anatomy.html Interactive (https://patternpaste.com/interactive/) Scrollspy Rail (https://patternpaste.com/interactive/scrollspy-rail/) Catalogue access Needs plugin (https://patternpaste.com/docs/install-pattern-paste/) # Case scrollspy anatomy A case study told as a photo essay: a compact masthead, then four sections that each open on a large captioned photograph and several paragraphs of story, ending in a results ledger. Needs the companion plugin, which comes with your access; without it, or without motion, the masthead is followed by the four photo sections as a plain stack. States no colour and no font of its own. Start here ## What you change first - The four photographs: select each and choose Replace; the 16:9 crop and cover setting stay. Rewrite the alt text and the caption for each. - Rewrite the four named Section groups; each Heading names its rail link. - Replace the ledger figures with measured results. - Keep the section titles at h3 below the h2 masthead, or adjust the hierarchy for the page they sit on. The signature moment ## A photo essay where every chapter opens on a full-column photograph and the rail carries the reader to a results ledger A photo essay: each of the four sections opens on a large captioned photograph at one 16:9 crop, then several paragraphs of story, so the pictures open each chapter and the narrow rail keeps the reader's place through the long read between them. The story ends in a results ledger rather than another chapter. Theme handoff ## What comes from where ### From your theme Every font and colour comes from the theme. Body text and captions need 4.5:1 contrast; the masthead heading and the ledger figures need 3:1. ### Set by this pattern It decides a padded full-width Group with a 1200px content ceiling, a compact masthead above the block so the first photograph shows at rest, a 176px unnumbered rail with a 40px gap, one 16:9 crop for all four photographs, and a three-column results ledger closing the last section. Section titles are on the theme's large rung and the ledger figures on x-large: hierarchy, not display. Full pattern notes ## Why it works, and how it is built Open a topic for the complete design reasoning, editing guidance and implementation notes. Design rationaleComposition, intent and nearest alternatives ### The signature moment: A photo essay where every chapter opens on a full-column photograph and the rail carries the reader to a results ledger A photo essay: each of the four sections opens on a large captioned photograph at one 16:9 crop, then several paragraphs of story, so the pictures open each chapter and the narrow rail keeps the reader's place through the long read between them. The story ends in a results ledger rather than another chapter. ### Why this is not services-scrollspy-index or handbook-scrollspy-directory Services scrollspy index is text-led: five long service chapters with a numbered rail, where the column of prose does the explaining. Handbook scrollspy directory is a directory, ten to twelve look-up entries where the rail is the thing you scan. This one is image-led: four sections, each a picture first, a caption and a few paragraphs, with an unnumbered rail because four chapters need names, not an index. It is the only one whose resting picture is a photograph. Make it yoursVariations and the edits to make first ### What you change first - The four photographs: select each and choose Replace; the 16:9 crop and cover setting stay. Rewrite the alt text and the caption for each. - Rewrite the four named Section groups; each Heading names its rail link. - Replace the ledger figures with measured results. - Keep the section titles at h3 below the h2 masthead, or adjust the hierarchy for the page they sit on. Theme behaviourInheritance, fixed decisions and contrast ### What it inherits from your theme Every font and colour comes from the theme. Body text and captions need 4.5:1 contrast; the masthead heading and the ledger figures need 3:1. ### What it decides for itself It decides a padded full-width Group with a 1200px content ceiling, a compact masthead above the block so the first photograph shows at rest, a 176px unnumbered rail with a 40px gap, one 16:9 crop for all four photographs, and a three-column results ledger closing the last section. Section titles are on the theme's large rung and the ledger figures on x-large: hierarchy, not display. Technical notesBlock mechanics, responsive behaviour and constraints ### What needs the plugin The plugin draws the rail and marks Brief, Approach, System or Result as the reader reaches it. Without it, the masthead is followed by the four photo sections as a plain stack; with reduced motion the rail stays and anchor links jump instantly. 21KB of core-block markup, 7 blocks (column, columns, group, heading, image, paragraph, patternpaste/scrollspy-rail), and nothing else: paste it into the block editor and it becomes editable blocks wearing your theme. Start free trial to copy (https://patternpaste.com/account/#plan) What you copy is yours forever. Cancel whenever. Back to the library (https://patternpaste.com/patterns/) Catalogue access ### £70 a year Save £50 Or £10 a month All patterns, variations and theme downloads. What you copy is yours forever. Cancel whenever. Start with three days of full access on sign-up, no card. Start free trial (https://patternpaste.com/account/#plan) Sign in (https://patternpaste.com/account/) Everything you copy is yours to keep, forever, on any site; access to the rest of the library runs while you subscribe. Cancel any time; access runs to the end of the period you have paid for, and there is no pro-rata refund. Prices are in pounds and are the full price in the UK, the US and eleven other countries; elsewhere the checkout adds your local VAT or sales tax. The terms name every country. #### Use it for - Studio case studies - Project retrospectives - Client success stories #### Pair with Hero Hero aperture An opening section on your theme's own paper: a tracked line, a display headline, one short paragraph on a reading measure, and then a picture that stops short of the edge on every side. The signature is the margin: the image is a window cut in the page rather than a band across it, and the paper around it is what you notice. A small opaque plate in the picture's bottom-right corner carries the caption, so no type ever sits on the photograph. The still-image version includes an example photograph; select your own clip for the video version. States no colour and no font of its own. (https://patternpaste.com/pattern/hero-aperture.html)Blog Post featured lead Two Query Loops read as one section: the newest post opens at display size with its featured image, its byline and an excerpt, and the three behind it sit in a rail beside it as ruled date-and-title lines with no picture at all. It reads your own posts, so the lead changes the moment you publish; the preview on this page shows sample posts from our demo site, not yours. States no colour and no font of its own. (https://patternpaste.com/pattern/post-featured-lead.html)Call to action CTA band A full-bleed closing band that inverts the page: a contrast ground carrying base text, one centred statement, one action. States no colour and no font of its own. (https://patternpaste.com/pattern/cta-band.html) #### Before you paste Install the Pattern Paste plugin first, then paste. This section embeds one of its blocks: the plugin comes with your access, downloads from your account, and takes a minute. Paste without it and the section arrives as a plain stack of your headings, text and images, with none of the motion. How to install it (https://patternpaste.com/docs/install-pattern-paste/). Requires a block theme on WordPress 6.7 to 7.0. Classic themes and page builders are outside our supported setup. Adaptive patterns use the block theme’s colour, spacing and typography presets; styled variations declare their own colours or type. How we test patterns (https://patternpaste.com/how-we-test/) Sample images stay in the copied blocks. Replace them in WordPress; pasting does not upload them to your Media Library. Video variations need your own clip. Image credits (https://patternpaste.com/image-credits/). #### What's inside Blocks column, columns, group, heading, image, paragraph, patternpaste/scrollspy-rail Core only NO Chains 26, deepest 3 rungs currentColor no spacing 20, 30, 40, 60, 70, 80 color black, contrast, role-label font-size large, medium, x-large Continue exploring ## Next in Interactive Explore all 36 interactive patterns (https://patternpaste.com/interactive/)Also in Editorial (https://patternpaste.com/patterns/editorial/) Shot in Twenty Twenty-Five Testimonials Testimonials Needs plugin ### Testimonial marquee editorial Eight client quotes set large in one slow line across an inverted band, with no card behind them: a drawn dot between voices, and a small round photograph with the name under each quote. 5 blocks Open preview (https://patternpaste.com/pattern/testimonial-marquee-editorial.html) Shot in Twenty Twenty-Five Single articles Single articles Needs plugin ### Handbook scrollspy directory A reference directory: twelve entries in a narrow reading column beside a wide, unnumbered index of their titles that stays in view and marks the entry being read. 6 blocks Open preview (https://patternpaste.com/pattern/handbook-scrollspy-directory.html) Shot in Twenty Twenty-Five Features Features Needs plugin ### Services scrollspy index A text-led services section with a narrow numbered index beside five generous service chapters. 8 blocks Open preview (https://patternpaste.com/pattern/services-scrollspy-index.html)