Browse components
Color Bends
Smooth ribbons of color that bend, fold and drift; the cursor gently warps them like a lens. WebGL.
Color Bends
Installation
npx shadcn@latest add @glint-ui/color-bendsFirst time using @glint-ui? Add the registry to components.json once, or install by URL: npx shadcn@latest add https://glint-ui-seven.vercel.app/r/color-bends.json
Usage
import { ColorBends } from "@/components/ui/color-bends";
<div className="relative h-96">
<ColorBends bands={3} />
</div>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| colors | string[] | ["#ff5e3a","#ff2d95","#7a5cff","#00c2ff"] | Up to four colors the bands flow through. |
| speed | number | 1 | Flow speed multiplier. |
| scale | number | 1 | Zoom; higher means wider bends. |
| bands | number | 3 | Number of bands across the view. |
| warp | number | 1 | How strongly the cursor warps the bands. |
| className | string | — | Extra classes for the root element. |