Introducing Aceternity UI Pro - 70+ premium component packs and templates to build amazing websites.
Logo

Dotted Glow Background

A background effect with opacity animation, glow effect and more.

Open in

The modern call scheduling app

Installation

Run the following command

npx shadcn@latest add @aceternity/dotted-glow-background

Example Background

Open in

Ready to buy Aceternity Pro?

Unlock premium components, advanced animations, and exclusive templates to build stunning modern interfaces.

Props

DottedGlowBackground Props

PropTypeDefaultDescriptionRequired
classNamestring-Additional CSS classes to apply to the container.No
gapnumber12Distance between dot centers in pixels.No
radiusnumber2Base radius of each dot in CSS pixels.No
colorstring"rgba(0,0,0,0.7)"Dot color (will pulse by alpha).No
darkColorstring-Optional dot color for dark mode.No
glowColorstring"rgba(0, 170, 255, 0.85)"Shadow/glow color for bright dots.No
darkGlowColorstring-Optional glow color for dark mode.No
colorLightVarstring-Optional CSS variable name for light dot color (e.g. --color-zinc-900).No
colorDarkVarstring-Optional CSS variable name for dark dot color (e.g. --color-zinc-100).No
glowColorLightVarstring-Optional CSS variable name for light glow color.No
glowColorDarkVarstring-Optional CSS variable name for dark glow color.No
opacitynumber0.6Global opacity for the whole layer.No
backgroundOpacitynumber0Background radial fade opacity (0 = transparent background).No
speedMinnumber0.4Minimum per-dot speed in rad/s.No
speedMaxnumber1.3Maximum per-dot speed in rad/s.No
speedScalenumber1Global speed multiplier for all dots.No

Build websites faster and 10x better than your competitors with

Aceternity UI Pro

Next.js 15, Tailwind CSS v4 and Motion for react powered templates

70+ templates and component blocks combined

Ready to copy paste component blocks, save days of development time

Aceternity UI Pro Demo - Light Mode
A product by Aceternity
Building in public at @mannupaaji