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

    Background Beams With Collision

    Exploding beams in the background

    What's cooler than Beams?
    Exploding beams.
    Exploding beams.

    Installation

    Run the following command

    npx shadcn@latest add @aceternity/background-beams-with-collision

    Props

    BackgroundBeamsWithCollision

    Prop NameTypeDescriptionDefault
    childrenReact.ReactNodeThe content to be rendered inside the componentRequired
    classNamestring?Additional CSS classes to be applied to the containerundefined

    CollisionMechanism

    Prop NameTypeDescriptionDefault
    containerRefReact.RefObject<HTMLDivElement>Reference to the container elementRequired
    parentRefReact.RefObject<HTMLDivElement>Reference to the parent elementRequired
    beamOptionsobjectConfiguration options for the beam

    beamOptions

    PropertyTypeDescriptionDefault
    initialXnumber?Initial X position of the beam0
    translateXnumber?X position to translate to0
    initialYnumber?Initial Y position of the beam"-200px"
    translateYnumber?Y position to translate to"1800px"
    rotatenumber?Rotation angle of the beam0
    classNamestring?Additional CSS classes for the beamundefined
    durationnumber?Duration of the animation in seconds8
    delaynumber?Delay before the animation starts in seconds0
    repeatDelaynumber?Delay before the animation repeats in seconds0

    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

    100+ templates and 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.