
Scroll Stack
Scroll
A scroll-linked list animation where a small square marker travels down a column of text rows, scaling and rotating as it goes, while the rows near it slide sideways.
Square Translate turns a plain list into a scroll-driven reading guide. A small square marker scales in, travels down the list while rotating a full turn, and scales out, and the row it is passing slides to the right, with neighbouring rows shifting by smaller amounts.
Use Square Translate for a list of short items that should be read one by one: services, capabilities, deliverables, or what's included in a plan. The rows of copy are the content and the square is the pointer that walks the visitor through them; pass your own rows with the items prop. The page job is order: movement should feel precise rather than decorative.
The main risk is overflow. Rows shift 55px to the right by default (translateValue), so leave room on the right edge, especially below 768px where the list goes full width.
import SquareTranslate from "@/components/effects/square-translate"; const page = () => { return ( <> <SquareTranslate /> </> );}; export default page;An agency services page listing ten capabilities: as the visitor scrolls, the square marker walks down the list and each service slides forward as the marker reaches it, so the list is read item by item rather than skimmed. The outcome is order: the motion reinforces the list instead of distracting from it.
Not for long paragraphs, forms, or lists where rows need to be compared side by side.
Not for lists with links or controls in each row, since the rows slide sideways under the pointer as you scroll.
Animate transform and opacity, avoid layout reads in scroll handlers, pre-size media, and clean up timelines/listeners when the route changes.
The rows render as real text in DOM order and the square is pointer-events-none decoration, so reading order is unaffected. Each row is its own single-item <ul>, so screen readers may announce ten short lists rather than one; adjust the markup if that matters. Nothing is pinned; below 768px the list goes full width with a 12px square, so check the sideways shift does not clip long rows.
| Prop | Type | Default | Description |
|---|---|---|---|
translateValue | number | 55 | Translate distance for the row currently aligned with the square. |
totalTranslateImpact | number | 3 | How many neighboring rows ripple outward from the square. |
maxRotation | number | 360 | Total rotation the square completes over the scroll track. |
transitionDuration | number | 0.4 | Tween duration for the square and row movement on each scroll update. |
squareColor | color | #FB450F | Color of the translated square marker. |
squareSize | number | 12 | Width and height of the square marker in pixels. |
A standard reveal animates content in once. Square Translate keeps working for the whole scroll through the list: a small square marker travels down the rows, scaling in, rotating a full turn, and scaling out, while the row it lines up with slides sideways and nearby rows follow by smaller amounts. The rows of copy are the content, and the square is the guide that walks the eye through them.
The component already goes full width below 768px with a fixed 12px square; lower translateValue if rows clip on narrow screens. The list still reads fine without the motion. With reduced motion the square still travels, rotates, and scales with scroll, but only the row it is aligned with shifts its text, with no ripple across neighbouring rows.
Confirm the row shift doesn't cause horizontal overflow, that the list reads well with your real item count and lengths, and that rows return to rest when you scroll past either end of the list. Test across breakpoints. Verify the static state looks intentional.
A single column of short, parallel items, such as services, deliverables, or plan inclusions, passed through the items prop. The default list has ten one-line rows, which gives the marker a clear path. Keep each row to one line so the sideways shift stays readable.
Avoid it when rows contain links or controls, when items are long paragraphs, or when the list is so short that a guided walk adds nothing. If the motion adds nothing to reading the list, leave it out. Skip it on utility routes.
Need a custom effect? Tell us what to create.