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

Glowing Effect

A border glowing effect that adapts to any container or card, as seen on Cursor's website.

Open in
  • Do things the right way

    Running out of copy so I'll write anything.

  • The best AI code editor ever.

    Yes, it's true. I'm not even kidding. Ask my mom if you don't believe me.

  • You should buy Aceternity UI Pro

    It's the best money you'll ever spend

  • This card is also built by Cursor

    I'm not even kidding. Ask my mom if you don't believe me.

  • Coming soon on Aceternity UI

    I'm writing the code as I record this, no shit.

Installation

Run the following command

npx shadcn@latest add https://ui.aceternity.com/registry/glowing-effect.json

Example

Here is another example usage of the same component with different props.

Open in
  • Do things the right way

    Running out of copy so I'll write anything.

  • The best AI code editor ever.

    Yes, it's true. I'm not even kidding. Ask my mom if you don't believe me.

  • You should buy Aceternity UI Pro

    It's the best money you'll ever spend

  • This card is also built by Cursor

    I'm not even kidding. Ask my mom if you don't believe me.

  • Coming soon on Aceternity UI

    I'm writing the code as I record this, no shit.

Props

PropTypeDefaultDescription
blurnumber0The amount of blur applied to the glowing effect in pixels
inactiveZonenumber0.7The radius multiplier for the center zone where the effect is disabled. Value between 0 and 1
proximitynumber0The distance in pixels beyond the element's bounds where the effect remains active
spreadnumber20The angular spread of the glowing effect in degrees
variant"default" | "white""default"The color variant of the effect. "default" uses a multi-color gradient, while "white" uses a black and white scheme
glowbooleanfalseWhen true, forces the effect to be visible regardless of hover state
classNamestringundefinedAdditional CSS classes to apply to the effect container
disabledbooleantrueWhen true, disables the interactive glowing effect
movementDurationnumber2The duration of the glow movement animation in seconds
borderWidthnumber1The width of the glowing border in pixels

This component was inspired by Cursor's Enterprise page.

Build websites faster and 10x better than your competitors with Aceternity UI Pro

With the best in class components and templates, stand out from the crowd and get more attention to your website. Trusted by founders and entrepreneurs from all over the world.

Go Pro
Excellent communication and professionalism from the start and throughout. Happily and calmly accepted and entertained a few additional out-of-scope requests as well. Good open-...

Henrik Söderlund

Former CTO at Creme Digital

A product by Aceternity
Building in public at @mannupaaji