Pixel Reveal

Image or generated art dissolves in through a shrinking pixel grid when scrolled into view — random, diagonal or centre-out — with an optional replay.

Try it: Press the replay button to run it again.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/pixel-reveal.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/pixel-reveal. You can also copy the source into components/ui/pixel-reveal.tsx (view on GitHub).

Usage

import { PixelReveal } from '@/components/ui/pixel-reveal'

Props

Component props
PropTypeDefaultNotes
src / altstring—Image; omit for generated art.
cols / rowsnumber12 / 8Grid size.
pattern'random' | 'diagonal' | 'center''random'Dissolve order.
durationnumber900Cascade length (ms).
showReplaybooleanfalseReplay button.
childrenReactNode—Overlay content (e.g. a caption).

Dependencies

  • lucide-react
  • Hologram Flip Card

    Flip to holographic rear with iridescent sheen.

  • Border Beam

    A comet of light travels a crisp masked hairline border, with an optional soft bloom. Static under reduced motion.

  • Liquid Morph Card

    Border/blob morphs toward pointer.

  • Swipe Cards

    Stacked deck: drag, flick, tap or arrow-key cards away with keep/pass stamps; the deck springs forward and every swipe is announced. Fades instead of flying under reduced motion.

  • Gravity Expand Card

    Click expands with spring; collapse on second click/outside.

  • Glass Card

    Liquid-glass surface with specular rim, inner hairline and layered depth; regular (frosted) or clear variants, and a solid fallback for prefers-reduced-transparency.

See all 27 Cards components