FX · Backgrounds

A slow spiral of colour fading toward the edges.

Into the swirl

bash
npx shadcn@latest add https://www.rad-ui.com/r/vortex.json
React
import Vortex from "@/components/fx/vortex" <Vortex className="px-8 py-24"> <h2>Your content</h2> </Vortex>
  • The effect layer is aria-hidden and ignores pointer events; only children are exposed.
  • Spinning spirals can cause vestibular discomfort: keep `speed` slow and offer a pause control.
  • Pauses offscreen; `paused` stops it on demand (wire it to a visible control if it runs behind reading content).
  • prefers-reduced-motion: reduce (or data-rad-fx-motion="reduce" on an ancestor) stops the spin.
PropTypeDefaultDescription
colors
[string, string]
violet, cyan

Spiral colours.

speed
number
30

Seconds per turn. Keep it slow.

paused
boolean
false

Stop the animation. It also pauses offscreen.

...props
ComponentProps<'div'>
—

Passed to the root div; children render above.