What's cooler than Beams? Exploding beams.Exploding beams.
Exploding beams.
Exploding beams.
Installation
Run the following command
npx shadcn@latest add https://ui.aceternity.com/registry/background-beams-with-collision.json
Props
BackgroundBeamsWithCollision
Prop Name | Type | Description | Default |
---|---|---|---|
children | React.ReactNode | The content to be rendered inside the component | Required |
className | string? | Additional CSS classes to be applied to the container | undefined |
CollisionMechanism
Prop Name | Type | Description | Default |
---|---|---|---|
containerRef | React.RefObject<HTMLDivElement> | Reference to the container element | Required |
parentRef | React.RefObject<HTMLDivElement> | Reference to the parent element | Required |
beamOptions | object | Configuration options for the beam |
beamOptions
Property | Type | Description | Default |
---|---|---|---|
initialX | number? | Initial X position of the beam | 0 |
translateX | number? | X position to translate to | 0 |
initialY | number? | Initial Y position of the beam | "-200px" |
translateY | number? | Y position to translate to | "1800px" |
rotate | number? | Rotation angle of the beam | 0 |
className | string? | Additional CSS classes for the beam | undefined |
duration | number? | Duration of the animation in seconds | 8 |
delay | number? | Delay before the animation starts in seconds | 0 |
repeatDelay | number? | Delay before the animation repeats in seconds | 0 |
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.
I've been working with Manu for a couple of months now and I can't express enough how impressed I am with his talent. Manu's JavaScript/React web UI programming skills are through the roof. He's he...
Tony Pujals
Founder at Fantastic Realms, Tech Lead at Google