Components
Flowing Fibers
Fibers that flow across the page.
ProPro, coming soon.
Everything, connected
<FlowingFibers>
<Hero />
</FlowingFibers>Get notified
Flowing Fibers is a Pro effect. Join the waitlist and we'll email you when it's available.
Usage
Fine fibres of light flow across the background in slow, twisting waves. It draws on a canvas, and the drawing stops while it's off-screen or the tab is hidden. Without canvas support, your content shows on its own.
import { FlowingFibers } from "@zjkm/pro/flowing-fibers";
export function Hero() {
return (
<FlowingFibers className="rounded-2xl bg-neutral-950 p-16">
<h1 className="text-white">Everything, connected</h1>
</FlowingFibers>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
children | ReactNode | Content shown over the fibres. | |
colorFrom | string | "#22d3ee" | Colour at the left. |
colorTo | string | "#a78bfa" | Colour at the right. |
count | number | 28 | Number of fibres. |
speed | number | 1 | Flow speed. |
className | string | Classes for the wrapper. |
With reduced motion, the fibres stay still.