Plankton

Bioluminescent specks drifting in dark water that flare up as the cursor passes.

no dependenciesMIT · free

Move to light it up.

Drag your cursor (or a finger) through the water.

Installation

npx shadcn@latest add https://ombakui.com/r/plankton.json

Usage

import { Plankton } from "@/components/plankton";

<Plankton className="h-[480px]" color="#5ef0c8" radius={160}>
  <h1>Move to light it up.</h1>
</Plankton>

Props

PropTypeDefaultDescription
childrenReactNode–Content rendered on top.
countnumber140Number of specks.
colorstring"#5ef0c8"Glow color.
radiusnumber140Radius in px around the cursor where specks light up.
speednumber1Drift speed multiplier.
classNamestring–