
Scroll Stack
Scroll
An image marquee that moves a set of thumbnails continuously along an SVG path, with Circle, Spiral, and Wave tabs to switch the route and scrolling down speeding it up.
SVG Path Marquee sends fifteen image thumbnails around an invisible SVG path using CSS offset-path, driven by motion/react. A tab bar switches between three built-in routes, Circle, Spiral, and Wave, and the images loop continuously at baseVelocity, speed up while you scroll down, slow down or even reverse while you scroll up quickly, slow down on hover, and can be dragged.
Use SVG Path Marquee when a set of images should orbit or flow along a shape rather than scroll past in a straight strip. Portfolio intros, event pages, and brand campaigns can use it as a full-screen visual moment. The page job is character: the line of motion should feel designed, not merely animated.
In production, the risk is scaling and clipping. The marquee scales its fixed viewBox to fit the screen, with larger scale classes on tablet and mobile, so check that images near the path's ends are not cut off at the viewport edge. The three paths are hard-coded in the source; there is no path prop.
import SVGPath from "@/components/effects/svg-path"; const page = () => { return ( <> <SVGPath /> </> );}; export default page;A photography studio's campaign page: SVG Path Marquee circles a set of portfolio thumbnails around the centre of the screen, and visitors can switch to the wave route or drag the loop themselves. The outcome is character: the motion carries the brand shape as much as the images.
Not for galleries people need to browse carefully, accessibility-critical content, or sections where constant motion distracts from reading.
Not for images that carry essential information, since each one is small and always moving.
Animate transform and opacity, avoid layout reads in scroll handlers, pre-size media, and clean up timelines/listeners when the route changes.
Each thumbnail is a link (to "/" in the shipped code) with generic alt text such as "Marquee path image 1", so replace both with real destinations and descriptions. The images never stop moving except under reduced motion, so give visitors a static way to reach anything important. On tablet and mobile the path is scaled up to fill more of the screen.
| Prop | Type | Default | Description |
|---|---|---|---|
bgColor | color | #000000 | Background color of the section. |
baseVelocity | number | 8 | Marquee scroll speed along the path. |
dragSensitivity | number | 0.1 | How much drag movement translates to velocity. Needs Draggable on. |
slowDownFactor | number | 0.3 | How much the marquee slows down while hovered. |
draggable | boolean | true | Enables drag interaction on the marquee. |
The marquee runs on its own clock at baseVelocity (8 by default), and with useScrollVelocity on, as it is in the shipped component, scroll speed is passed through a spring and added as a boost, so it speeds up while you scroll down, slows or reverses while you scroll up, and settles back when you stop. Confirm fast scroll doesn't cause the images to jump along the path.
The three routes (Circle, Spiral, Wave) are SVG path strings hard-coded in the component, and there is no path prop, so a new route means editing the tabs array in the source with your own path data and viewBox. Gentle paths keep the images evenly spaced; tight corners bunch them together.
Use simple, high-contrast thumbnails that read at small sizes, since each image is about 56px wide on desktop. Busy or detailed photos blur into each other while moving. Keep baseVelocity moderate so individual images can still be recognised.
With reduced motion, the automatic drift, hover slowdown, and dragging are switched off, but the content still steps along the path as you scroll, at 5% of the scroll distance, and stays put when scrolling stops. Never make the moving state the only way to reach the content behind the images.
Yes, if you edit the source: items follow any SVG path string through CSS offset-path, so you can add a tab with a product silhouette or logo outline in place of the built-in routes. Keep the outline smooth enough that images stay evenly spaced, and treat the shape as expression, not as the only carrier of meaning.
Need a custom effect? Tell us what to create.