Puzzl UIbeta

Sparkling Pixels

A customizable animated component for React and Framer.

Hover me

Installation

npx shadcn@latest add https://puzzlui.com/registry/sparkling-pixels.json

First time using Puzzl UI? Read ourinstallation guide.

Properties

PropertyTypeDefaultDescription
pixelColorsstring[]Array of colors for the pixels. Values must be rgb(r,g,b) values. (required)
classNamestring Additional class names to apply to the container.
bgColorstringblackBackground color of the canvas.
pixelSizenumber 2Size of each pixel in the grid.
pixelSpacingnumber 4Spacing between pixels in the grid.
vignetteStartRadiusnumber 0Initial radius of the vignette effect.
vignetteEndRadiusnumber 1000Final radius of the vignette effect.
vignetteDurationnumber 1000Duration of the vignette effect in milliseconds.
vignetteFromcenter
top
bottom
left
right
top-left
top-right
bottom-left
bottom-right
mouse
centerStarting point of the vignette effect.
startonload
onmouseover
onloadWhen the animation should start.
randomHighlightRatenumber0.001Rate at which random pixels are highlighted.
followMouseboolean falseWhether the pixels should follow the mouse movement. Available only if start is "onmouseover".