Docs / Components / Pixel Fall Effect

Pixel Fall Effect

A card component where an interactive pixelated screen shatters and falls down on hover, revealing an underlying vibrant color.

Canvas Effect

DigitalShatter

Interactive structural physics built natively.

Hover to reveal

Dependencies

Install the following dependencies to use this component:

1npm install lucide-react

Installation

Run the following command in your terminal to add the component to your project:

1npx rankflow-ui@latest add pixel-fall-effect

Props Reference

PropTypeDefaultDescription
directionstring'down'The direction of the pixel fall.
defaultColorstring'#2563eb'The color of the canvas layer.
hoverColorstring'#ef4444'The background color revealed on hover.
pixelSizenumber16The size of each falling pixel block.
classNamestring''Additional CSS classes.