Pixelated Image Effect
Cursor
A project list where hovering a row slides a curved Three.js image stack to that row's preview, with tap-to-preview on smaller screens.
Interactive Hover Slider adds motion to a component that already has a job: hover previews guide exploration.
Use Interactive Hover Slider when a compact list of projects or capabilities should reveal visual context as the visitor moves down it. Each row shows an ID, title, focus, and year; on desktop, hovering a row slides a vertical stack of images to its preview and bends the planes as they travel. Below 1025px wide, tapping or clicking a row does the same.
The thing to watch is access. The rows are plain divs that respond only to pointer enter, pointer down, and click, with no focus or key handling, so keyboard users cannot change the preview. Put the same information in reachable HTML, or add focusable rows yourself.
import HoverSlider from "@/components/effects/hover-slider"; const page = () => { return ( <> <HoverSlider/> </> );}; export default page;A product page can use Interactive Hover Slider to preview related capabilities from a compact list. Hover drives the previews on desktop, and below 1025px wide the same previews open when a row is tapped.
Not for essential information that mobile, keyboard, or no-hover users cannot reach.
The WebGL canvas caps the pixel ratio at 2, requests a texture for every item on mount and caches them so no image loads twice, and pauses its render loop when offscreen or in a hidden tab. Keep preview images reasonably sized, because each one becomes a texture.
Below 1025px wide, previews open on tap, but there is no keyboard path: rows are not focusable and have no key handlers, so keep essential content in reachable HTML. The WebGL canvas is aria-hidden. With reduced motion, only the active image is shown and it fades in place instead of sliding and bending.
| Prop | Type | Default | Description |
|---|---|---|---|
transitionDuration | number | 0.45 | Hover reveal and curve transition duration. |
imageScale | number | 0.95 | WebGL image plane scale. |
curveFactor | number | 1 | Multiplier for the circular arc image curvature. |
Use it when a feature or product section needs hover previews to guide exploration.
Below 1025px wide, a tap or click on a row opens its preview, so touch users are covered. Keyboard users are not: the rows have no focus or key handling. Add focusable rows yourself, or make sure the information the previews carry is also in reachable HTML.
It already uses tap-to-preview below 1025px wide: tapping a row slides the image stack to that row. On phones the canvas is fixed to the viewport, and the list can scroll sideways when it is wider than the screen.
Yes, when short feature labels need supporting screenshots or proof snippets. It hurts conversion when previews hide the primary CTA or require desktop-only behavior.
With reduced motion, previews still change, but only the active image is shown: it fades in place with no sliding stack, bending, or travel between rows.
Need a custom effect? Tell us what to create.