Browse components
Bit Flurry
Chunky pixel-art snowflakes drifting down in parallax layers, swaying in the wind. WebGL.
Bit Flurry
Installation
npx shadcn@latest add @glint-ui/bit-flurryFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glintui.vercel.app/r/bit-flurry.json
Usage
import { BitFlurry } from "@/components/ui/bit-flurry";
<div className="relative h-96">
<BitFlurry 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. |