Skip to Content
zjkm-ui
Components

Flowing Fibers

Fibers that flow across the page.

ProPro, coming soon.

Everything, connected

Props
28
1.0
<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

PropTypeDefaultDescription
childrenReactNodeContent shown over the fibres.
colorFromstring"#22d3ee"Colour at the left.
colorTostring"#a78bfa"Colour at the right.
countnumber28Number of fibres.
speednumber1Flow speed.
classNamestringClasses for the wrapper.

With reduced motion, the fibres stay still.

On this page