Add a scroll progress timeline effect to [the list of steps I point to]: a vertical line that fills in as you scroll, and every step lights up when the line reaches it. Visual: a thin vertical track runs next to the steps, with a marker per step. On top of the track: a fill line, with a dot at the end of the fill. Behaviour: the dot always sits at the vertical middle of the screen while you scroll through the list, and the fill grows from the top of the track down to that dot. Clamp it so it never goes past the start or end of the track. Every step whose marker has passed the middle of the screen becomes active: its marker and text switch from the inactive to the active state, with a short transition. Use plain JavaScript with requestAnimationFrame on scroll, no library. On mobile (from 360px) the track stays on the left and the text wraps. Respect prefers-reduced-motion by removing the transitions. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
Stacking cards
Cards pin to the top of the screen while the next one slides over them. Great for reviews, steps or questions.
This is the real effect. Scroll or move your mouse inside the frame to try it.
Add a stacking cards effect (also called a sticky card stack) to the cards in [the section I point to]. Behaviour: every card uses position: sticky with a top offset that grows a little per card (for example 8vh + 16px per card), so the top edges of earlier cards stay visible like a pile. While the next card slides over the current one, scale the covered card down to about 0.92 and dim it slightly, based on how far the next card has travelled. Use a passive scroll listener with requestAnimationFrame, no library. Details: the cards need their own solid background so each new card stands out against the one below it. transform-origin at the top centre, no layout shift, the last card never shrinks. Respect prefers-reduced-motion: keep the sticky stack but drop the scale and dim. It must work on mobile from 360px wide. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
What it is
A stack of cards that pin to the top of the screen. You scroll, the next card slides over the previous one, and the card underneath shrinks and darkens a little. It feels like dealing cards onto a table.
When it works
I use it for things people should read one at a time. Reviews, steps in a process, the questions in an FAQ. On the Living with Prompts program pages the objections work like this. Each card gets the full attention for a moment.
Get it right
- Give every card its own background, otherwise the stack turns into one grey block.
- Keep the shrink small. 5 to 8 percent is enough.
- No more than six cards in one stack. People get tired of scrolling.
- Switch the scaling off for people who prefer reduced motion.
Also called
- Sticky card stack
- Card stack on scroll
- Pinned cards
- Stacked scroll cards
More effects.
All effects- ScrollPrompt
- ScrollPrompt
Add a scroll-scrubbed video effect to [the section I point to]: the video plays forward and backward with the scroll, like on Apple product pages. Behaviour: the section becomes a tall wrapper with a sticky inner panel of 100vh, and the video fills that panel with object-fit: cover. Map the scroll progress through the wrapper (0 to 1) to video.currentTime. Smooth it by easing the current time toward the target every animation frame, and skip a frame while the video is still seeking, so it never stutters. The video is muted, paused, playsinline and preload metadata, and only loads when the section comes near the viewport. Any captions in the section fade in during their own part of the scroll and stay readable on top of the video. Video file: for smooth scrubbing it needs a keyframe on every frame or every few frames (for example ffmpeg with -g 1 or -g 5). Keep it short and under 5 MB. Accessibility: with prefers-reduced-motion, show a poster image and the captions as a normal list instead. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.
- ScrollPrompt
Add a word-by-word scroll highlight to [the statement I point to]: the text lights up word by word as you scroll through it. Behaviour: the section gets extra height (about 200vh) with a sticky inner area of 100vh that holds the statement. Split the text into words with JavaScript and wrap each word in a span. Keep the full sentence readable for search engines and screen readers (put it in an aria-label on the container and hide the spans with aria-hidden). Every word starts at about 15% opacity. The reveal is scrubbed by the scroll: it starts as soon as the statement comes into view (section top at about 75% of the viewport) and finishes just before the section unpins. Map that scroll range to the number of lit words, so the words go to full opacity one by one in reading order, and run backwards when scrolling up. The word that is being lit gets a partial opacity, so it feels smooth instead of stepping. No library. Respect prefers-reduced-motion by showing the whole text at full opacity. Style: build it in the existing design system of this website. Reuse its colours, fonts, spacing, corner radius and existing classes or components, and don't add new colours or fonts. Use real content from this website for any text or images in the effect (its headings, services and copy), never placeholder text. If the project has no design system yet, ask me for the brand colours and fonts before you start.