Components
An interactive full-screen canvas background of animated dots that ripple in a wave around the cursor, with configurable size, spacing, color, glow and noise effects.
Loading preview...
"use client";
import React from "react";
import { FractalDotGrid } from "@/components/ui/bg-animated-fractal-dot-grid";
export default function FractalDotGridDemo() {
return (
<div className="relative flex h-[600px] w-full items-center justify-center overflow-hidden bg-gray-100">
<FractalDotGrid
dotSize={4}
dotSpacing={20}
dotOpacity={0.3}
waveIntensity={30}
waveRadius={200}
dotColor="rgba(100, 100, 255, 1)"
glowColor="rgba(100, 100, 255, 1)"
enableNoise={true}
noiseOpacity={0.03}
enableMouseGlow={true}
initialPerformance="high"
/>
<div className="relative z-10 px-6 text-center">
<h1 className="text-4xl font-semibold tracking-tight text-gray-900 sm:text-6xl">
Fractal Dot Grid
</h1>
<p className="mt-4 text-base text-gray-600 sm:text-lg">
An interactive animated background that reacts to your cursor.
</p>
</div>
</div>
);
}