Pixel Wipe Carousel
An autoplaying editorial image carousel that sweeps each new frame in from the right through a deliberately coarse, resolving pixel mosaic.
Installation#
pnpm dlx shadcn@latest add @davinciui/pixel-wipe-carouselUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
slidesImage URLs and accessible descriptions shown in sequence. | PixelWipeSlide[] | — |
intervalMilliseconds between the start of consecutive wipes. | number | 1600 |
transitionDurationMilliseconds used by the moving mosaic wipe. | number | 800 |
pixelSizeLargest mosaic cell at the transition midpoint. | number | 34 |
autoPlayAutomatically advances once the images are loaded. | boolean | true |
pauseOnHoverPauses the next automatic wipe while hovered. | boolean | false |
label / captionTwo compact editorial lines fixed over the lower-left corner. | ReactNode | "ACME" / "for SYSTEM MAGAZINE" |
overlayOptional custom content placed above the canvas. | ReactNode | — |
ariaLabelAccessible name for the carousel region. | string | "Pixel wipe image carousel" |
classNameControls the carousel dimensions and surrounding surface. | string | — |
Accessibility#
A region with carousel roledescription and aria-label contains an aria-hidden canvas, while the current alt is announced through an aria-live polite span. There are no keyboard controls, and autoplay pauses only on hover when pauseOnHover is set.
Motion#
A rightward reveal wipes in a mosaic that resolves from pixelSize blocks to sharp imagery, timed by interval and transitionDuration with an ease-out quint curve. matchMedia reduced motion disables autoplay entirely and leaves a static first frame.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

