Skip to content

Dot cloud

Playground

Colour

Pointer

Install

npm install @shavin/fx
import { DotCloud } from "@shavin/fx";

Works with

React

Client component; Next.js and any React 18+ app

Remotion

Frame-exact through FxTimeProvider or time

Usage

Component Source
import { DotCloud } from "@shavin/fx";

<DotCloud />

Props

PropTypeDefaultDescription
densitynumber1Dot count multiplier, 0.4 to 2.
dotSizenumber1.6Dot radius in CSS px.
speednumber1Animation speed multiplier; 0 holds still.
interactivebooleantrueThe cloud turns toward the pointer (mouse, touch and pen). Ignored under reduced motion.
colorFxColor"fg"Dot colour: a theme token (fg, brand, muted), any CSS colour or var(--token), or a { light, dark } pair.
toneFxColor—Deprecated: use color.
grainnumber0Film grain over the canvas, 0 to 0.3 (0 is off).
timenumber—Controlled time in seconds (e.g. frame / fps in Remotion); also read from FxTimeProvider.
Configure Theme
Theme
Brand Color
Custom
Gray Family
Appearance
Radius
Scaling
Panel Style
Heading Font
Body Font