10% off on all-access. Use code SUPER10.
d :
h :
m :

Canvas Reveal Effect

A dot background that expands on hover, as seen on Clerk's website

Loading...

Installation

Run the following command

npx shadcn@latest add @aceternity/canvas-reveal-effect

Section

Loading...

Static

Loading...

Props

ComponentProp NameTypeDefault ValueDescription
CanvasRevealEffectanimationSpeednumber0.4Animation speed, where 0.1 is slower and 1.0 is faster.
CanvasRevealEffectopacitiesnumber[][0.3, 0.3, 0.3, 0.5, 0.5, 0.5, 0.8, 0.8, 0.8, 1]Array of opacities for the effect.
CanvasRevealEffectcolorsnumber[][][[0, 255, 255]]Array of RGB color arrays to use in the effect.
CanvasRevealEffectcontainerClassNamestringAdditional class name(s) for the container div.
CanvasRevealEffectdotSizenumberSize of the dots in the effect.
CanvasRevealEffectshowGradientbooleantrueWhether to show the gradient overlay effect.
DotMatrixcolorsnumber[][][[0, 0, 0]]Array of RGB color arrays for the dots. Default is black.
DotMatrixopacitiesnumber[][0.04, 0.04, 0.04, 0.04, 0.04, 0.08, 0.08, 0.08, 0.08, 0.14]Array of opacities for the dots.
DotMatrixtotalSizenumber4Total size of the effect area.
DotMatrixdotSizenumber2Size of the individual dots.
DotMatrixshaderstringCustom shader code to apply to the dots.
DotMatrixcenter("x" | "y")[]["x", "y"]Array indicating whether to center the effect on the x and/or y axis.
ShaderMaterialsourcestringGLSL source code for the shader.
ShaderMaterialuniformsUniformsUniform variables for the shader.
ShaderMaterialmaxFpsnumber60Maximum frames per second for the shader animation.
ShadersourcestringGLSL source code for the shader.
ShaderuniformsUniformsUniform variables for the shader.
ShadermaxFpsnumber60Maximum frames per second for the shader animation.

The inspiration for this effect is directly taken from Clerk's website.

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
Logo
Aceternity UI

Access an ever-growing collection of premium, meticulously crafted templates and Component Blocks.

A product by Aceternity
Building in public at @mannupaaji

© 2026 Aceternity Labs LLC. All Rights Reserved.