Toggle Sidebar B
AppearanceLight & dark mode D

Pixel Card

Card content revealed through pixel expansion transition.

Default

Hover or focus the card to grow the pixel field. Pick a variant to change the palette, grid gap and speed.

Light previewReplay previewOpen in new tab
Hover Me.

Customize

Variant

API Reference

PixelCard

PropTypeDefaultDescription
variant"default" | "yellow" | "blue" | "pink""default"Defines the color scheme and animation style.
gapnumbervaries by variantPixel grid gap size in pixels.
speednumbervaries by variantAnimation speed modifier (lower is slower).
colorsstring"#f8fafc,#f1f5f9,#cbd5e1"Comma-separated list of colors for the pixel effect.
noFocusbooleanfalseIf true, prevents animation from triggering on focus.

PixelCard slots

PropTypeDefaultDescription
defaultslot-Content to render inside the pixel effect container.

Accessibility

Keyboard shortcuts and ARIA behavior.

Shortcut Description
TabFocuses the card and runs the effect, unless noFocus is set.
  • The pixel canvas is decorative. Put real content in the slot.
  • The effect is static when the user prefers reduced motion.