void-animation-default
import { VoidAnimation } from "@/components/ui/backgrounds/void-animation"
export function DemoOne() {
return (
<div className="relative flex h-full w-full flex-col items-center justify-center overflow-hidden rounded-xl border">
<VoidAnimation
voidBallsAmount={0}
voidBallsColor="#fff200"
plasmaBallsColor="#fff200"
plasmaBallsStroke="#fff200"
gooeyCircleSize={30}
blendMode="overlay"
className="mx-auto"
/>
</div>
)
}
pnpm dlx shadcn@latest add "https://ui.dalim.in/r/void-animation-default.json"
Installation
pnpm dlx shadcn@latest add https://ui.dalim.in/r/styles/default/void-animation.json
Usage
import { VoidAnimation } from "@/components/ui/void-animation"
<div className="relative h-full w-full rounded-lg border">
<VoidAnimation
voidBallsAmount={0}
voidBallsColor="#fff200"
plasmaBallsColor="#fff200"
plasmaBallsStroke="#fff200"
gooeyCircleSize={30}
blendMode="overlay"
className="mx-auto"
/>
</div>
API Reference
VoidAnimation
Renders an animated SVG "void ball" effect with customizable props.
Prop | Type | Default | Description |
---|---|---|---|
className | string | – | Tailwind/CSS classes applied to the <svg> container. |
width | number | 300 | Width of the animation canvas. |
height | number | 300 | Height of the animation canvas. |
speed | number | 1 | Animation speed multiplier. |
color | string | "currentColor" | Base color of the plasma glow. |
...props | SVGProps<SVGSVGElement> | – | Additional props for the <svg> . |