BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/interlace-ui/background-beams-with-collision

Background Beams With Collision

interlace-ui/background-beams-with-collision
FreeComponent

A hero surface where thin vertical beams fall from the top and burst into a ten-particle explosion when they reach the strip along the bottom. Your children render above them on a `z-10` layer.

Install it

npx shadcn@latest add https://ds.interlace.tools/r/background-beams-with-collision.json

Source

registry/interlace-ui/aceternity/background-beams-with-collision.tsxds.interlace.tools/r/background-beams-with-collision.json · first 6 KB
1"use client";
2
3import { cn } from "@/lib/utils";
4
5// @interlace/background-beams-with-collision v1.2.0 — Interlace design system.
6// Docs, props and live preview: https://ds.interlace.tools/c/background-beams-with-collision
7// What changed since: https://ds.interlace.tools/c/background-beams-with-collision#history
8// Generated banner — keep it, the upgrade diff reads this version.
9
10/**
11 * @interlace/ui — BackgroundBeamsWithCollision
12 *
13 * A hero surface where thin vertical beams fall from the top and burst into a
14 * ten-particle explosion when they reach the strip along the bottom. Your
15 * children render above them on a `z-10` layer.
16 *
17 * The container is `h-96 md:h-[40rem]` unless `containerClassName` says
18 * otherwise.
19 *
20 * Our reimplementation of the Aceternity UI effect of the same name. What is
21 * ours: the beams are painted from `--primary` / `--chart-2` rather than the
22 * upstream purple/indigo literals, so they re-resolve per theme; an
23 * `IntersectionObserver` unmounts the whole beam layer when the hero scrolls
24 * out of view; the collision poll runs at 200ms instead of 50ms; and the
25 * explosion is ten particles instead of twenty.
26 *
27 * ## Anatomy
28 *
29 * div (parent — gradient, overflow-hidden,
30 * contain: layout style paint)
31 * ├─ CollisionMechanism ×beams (motion.div beam + AnimatePresence)
32 * │ └─ Explosion (glow line + 10 motion.span particles)
33 * ├─ div.z-10 (your children)
34 * └─ div (collision surface, bottom strip —
35 * styling suppressed by hideCollisionSurface)
36 *
37 * Each beam is a `BeamConfig` (`initialX`, `translateY`, `duration`, `delay`,
38 * `repeatDelay`, `className`); `beams` replaces the seven-beam default wholesale.
39 *
40 * ## Motion
41 *
42 * JS-driven throughout — `motion/react` transforms for the fall, a
43 * `setInterval` collision poll, and `AnimatePresence` for the burst. None of
44 * it is reachable by the CSS reset in `styles/preflight.css`, so the gate is
45 * in JS and it is total: `{isVisible && !reduceMotion && beams.map(…)}` means
46 * that under `prefers-reduced-motion: reduce` no `CollisionMechanism` mounts
47 * at all — no beams, no interval, no explosions. What remains is the gradient
48 * background, the collision strip, and your content. That is the intended
49 * still state, not a degraded one.
50 *
51// … truncated

Facts

Registry
interlace-ui
Type
registry:ui
Access
Free
Files written
0
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
today

Go to the source

ds.interlace.tools Raw registry item This item as JSON

More from interlace-ui

All 140 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
A11y Startera11y-starterinterlace-uiComponentsFreeno deps
Accordionaccordioninterlace-uiComponentsFreeno deps
Alertalertinterlace-uiComponentsFreeno deps
Alert Dialogalert-dialoginterlace-uiComponentsFreeno deps
Animated Gradient Textanimated-gradient-textinterlace-uiComponentsFreeno deps
Animated Grid Patternanimated-grid-patterninterlace-uiComponentsFreeno deps
Animated Listanimated-listinterlace-uiComponentsFreeno deps
Article Cardarticle-cardinterlace-uiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex