Current Lines

Thousands of fine lines drifting along an ocean current. The cursor stirs a whirlpool.

no dependenciesMIT · free

Go with the flow.

Installation

npx shadcn@latest add https://ombakui.com/r/current-lines.json

Usage

import { CurrentLines } from "@/components/current-lines";

<CurrentLines className="h-[480px] bg-slate-950 text-sky-300/80">
  <h1>Go with the flow.</h1>
</CurrentLines>

Props

PropTypeDefaultDescription
childrenReactNode–Content rendered on top of the lines.
colorstring"currentColor"Line color. Any CSS color; defaults to the element's text color.
densitynumber1.4Particles per 10,000 px² of area.
speednumber1Flow speed multiplier.
trailnumber0.92How long trails linger, 0–1. Higher means longer trails.
interactivebooleantrueThe cursor stirs a whirlpool into the current.
classNamestring–