
Scroll Stack
Scroll
A scroll-linked reveal that resolves an image from heavy pixelation to sharp using an SVG filter, for campaign visuals, product shots, and editorial imagery.
SVG Pixel Reveal pixelates a regular image with an SVG filter and lets scroll resolve it to sharp, as if the page is resolving signal. The pixel blocks start at 22px by default (the intensity prop) and shrink uniformly across the whole image until the filter is removed. It suits technical pages that need a designed reveal without a full scene.
Use SVG Pixel Reveal when a graphic or image should arrive through a designed digital filter. Creative studios, product launches, and technical brands are the right fit because the reveal itself becomes part of the visual identity. The page job is signal: the reveal should make the asset feel engineered, not merely faded in.
The main risk is how the pixel grid reads at your size. The filter works on whatever image you pass as src, so pre-size the container and check the starting pixels look deliberate on large and small screens; there is no reduced-motion fallback, so the pixelated-to-sharp transition always plays.
import SVGPixelReveal from "@/components/effects/svg-pixel-reveal"; export default function Page() { return ( <> <section className="flex min-h-[50vh] max-sm:min-h-[70vh] items-center justify-center px-6 py-20"> <SVGPixelReveal src="https://pub-8abee449136941f5b0a1cd2c014534e9.r2.dev/vault-listing-images/assets-images/v-01.jpg" alt="Nature scene" className=" w-full max-sm:max-w-md h-[70vh] max-w-xl" /> </section> </> );}A developer-tool launch page revealing a key interface image: SVG Pixel Reveal breaks the asset into a controlled digital entrance before resolving to the final screenshot. The outcome is signal: the product feels technical before the visitor reads the caption.
Not for essential diagrams, legal copy, or hero content that must be readable before animation completes.
Not for assets that carry essential meaning before the reveal has finished.
The pixel size is React state updated on every tween tick, which re-renders the SVG filter, and SVG filters on large images are relatively costly while active. The filter is removed once the image is sharp, and the tween and ScrollTrigger are killed on unmount. Pre-size the image and keep to one reveal per view.
The image is a real next/image element with your alt text, and the filter SVG is aria-hidden, so the content is available to assistive technology at every stage. Nothing is pinned; size the container for mobile with className, as the usage does. There is no reduced-motion handling, so the transition plays regardless of the setting.
| Prop | Type | Default | Description |
|---|---|---|---|
intensity | number | 22 | Starting pixelation intensity before the reveal sharpens the image. |
scrub | boolean | true | Tie the reveal to scroll position. When off, the reveal plays once when the image enters the viewport. |
duration | number | 1.5 | Reveal duration in seconds when scrub is off. Needs Scrub off. |
Instead of fading an element in, it pixelates the whole image and shrinks the pixel size uniformly as you scroll, as if the page is reconstructing a signal, a designed reveal without a full canvas scene. The mechanic is an SVG pixelate filter on a regular <img>, with GSAP ScrollTrigger scrubbing the pixel size down to 1 until the filter is removed and the image is sharp. Set scrub to false to play it once on enter instead. Use it on technical pages that want a considered reveal that's still lightweight.
Size the container for small screens with className, and lower intensity if the starting pixels feel too heavy on a small image. If scroll-linking feels unreliable, set scrub to false so the reveal plays once over duration seconds when the image enters view. The component has no reduced-motion mode, so the scroll-driven pixelated-to-sharp transition plays regardless of the setting.
Confirm the image has meaningful alt text, that the reveal reaches full sharpness within the scroll range at your layout, and that the final state is the plain image with the filter removed. Check performance with your real image size. There is no no-motion fallback, so make sure the image reaches full sharpness by the end of the scroll range.
A single strong image, such as a product shot, interface screenshot, or campaign photo, that benefits from a deliberate arrival. Raster photography works well, as in the usage example; the effect is wasted on tiny or decorative images where the pixelation barely reads. Give it one focal image per section.
Avoid it for graphics that must be readable instantly, or where the reveal delays comprehension of important information. If the filter stutters on a very large image, reduce the image size or ship it static. Skip it when the reveal adds time but no meaning.
Need a custom effect? Tell us what to create.