Browse components
Pixel Snow
Chunky pixel-art snowflakes drifting down in parallax layers, swaying in the wind. WebGL.
Pixel Snow
Installation
npx shadcn@latest add @glint-ui/pixel-snowFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/pixel-snow.json
Usage
import { PixelSnow } from "@/components/ui/pixel-snow";
<div className="relative h-96">
<PixelSnow density={0.35} pixelSize={4} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| color | string | "#ffffff" | Flake color. |
| speed | number | 1 | Fall speed multiplier. |
| density | number | 0.35 | How many flakes. |
| pixelSize | number | 4 | Size of one chunky pixel in px. |
| wind | number | 0.3 | Sideways drift; negative blows left. |
| className | string | — | Extra classes for the root element. |