Skip to content

    Browse components

    Bit Flurry

    Chunky pixel-art snowflakes drifting down in parallax layers, swaying in the wind. WebGL.

    Bit Flurry

    Open
    Customize

    Installation

    npx shadcn@latest add @glint-ui/bit-flurry

    First 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

    PropTypeDefaultDescription
    colorstring"#ffffff"Flake color.
    speednumber1Fall speed multiplier.
    densitynumber0.35How many flakes.
    pixelSizenumber4Size of one chunky pixel in px.
    windnumber0.3Sideways drift; negative blows left.
    classNamestring—Extra classes for the root element.