Docs
Floating Pixel Backgroud
Floating Pixel Backgroud
A amazing Floating pixel Backgroud
Installation
Copy and paste the dot code into your project.
API Reference
Props
Prop | Type | Description |
---|---|---|
id | number | A unique identifier for the pixel. |
x | number | The horizontal position of the pixel on the screen. |
y | number | The vertical position of the pixel on the screen. |
size | number | The size (width and height) of the pixel, in pixels. |
speed | number | The speed at which the pixel moves (affects animation). |
Usage
export default function Demo() {
return (
<div className="h-[600px] flex items-center justify-center overflow-hidden bg-gray-900 dark:bg-gray-900">
{/* Floating Pixels Effect Background */}
<FloatingPixels />
{/* Hero Content */}
<div className="text-center px-4 sm:px-6 lg:px-8">
<h1 className="text-4xl sm:text-5xl lg:text-6xl font-extrabold text-white tracking-tight mb-4">
Welcome to the BuouUI
</h1>
<p className="mt-6 text-xl sm:text-2xl text-gray-300 max-w-3xl mx-auto">
BuouUI is a team of talented designers and developers making, and we
love building beautiful and functional websites.
</p>
</div>
</div>
)
}