Pixel Card
Web (React)
A card that reveals a pixelated, shimmering canvas pattern on hover.
A stunning interaction component that draws a grid of shrinking and growing canvas pixels following your cursor focus.
Hover Me
Blue Variant
Installation
CLI
npx @modus-ui/cli add pixel-cardManual
- Copy the code from the component tab.
- Create a file at
components/ui/pixel-card.tsx. - Paste the code.
Usage
tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
variant | "default" | "blue" | "yellow" | "pink" | "default" | Preset for gap, speed, colours and focus behaviour. |
gap | number | - | Gap between pixels; overrides the variant. |
speed | number | - | Shimmer speed; overrides the variant. |
colors | string | - | Comma-separated pixel colours; overrides the variant. |
noFocus | boolean | - | Skips the animation on keyboard focus; overrides the variant. |
Comments