Pixel Card

Animated pixel effect card with hover interactions and customizable variants

Pixel Card

Hover to see the effect

Usage

import PixelCard from './PixelCard';

<PixelCard variant="pink">
  // your card content (use position: absolute)
</PixelCard>

Props

PropTypeDefaultDescription
variant'default' | 'blue' | 'yellow' | 'pink''default'Predefined color variant
gapnumberundefinedGap between pixels (overrides variant)
speednumberundefinedAnimation speed (overrides variant)
colorsstringundefinedComma-separated color values (overrides variant)
noFocusbooleanundefinedDisable focus interactions (overrides variant)
classNamestring''Additional CSS classes
childrenReact.ReactNode-Card content

Variants

  • default: Light gray colors with moderate speed
  • blue: Blue gradient colors with smooth animation
  • yellow: Yellow/gold colors with fast animation
  • pink: Pink/red colors with very fast animation and no focus