Effects
JS behaviour
Border beam
A glowing segment of light travelling around any element’s border — for the recommended plan, the active card or a field at work. Paused off screen; a still glow under reduced motion.
Real scenarios
The component as it is used in a product — not a specimen grid.
The plan we recommend
Three plans side by side; only the middle one carries a slow gold beam, so the eye lands there without a shouting badge.
StarterFreeFor trying things out
Studio
Recommended
$19 / mo
For small teams shipping weekly
EnterpriseTalk to usSSO, audit log, SLA
A prompt box at work
The bare .nx-beam class is toggled on while the request runs — the beam says “working” and the label says it too.
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| tone | string | 'accent' | accent · gold · violet · success; or any colours through color-from and color-to. |
| size | number | 70 | Length of the beam, in degrees of a lap. |
| duration | number | 6 | Seconds per lap; larger is calmer. |
| width | number | 1.5 | Ring thickness in px. |
| radius | string | null | Corner radius of the wrapper; the beam follows it. |
| reverse · delay | bool · number | false · null | Run the other way, and offset the start when several beams share a page. |
Snippet
<x-nx::border-beam radius="var(--nx-radius-2xl)" tone="gold" :duration="8">
<x-nx::card>
<h3>پلن حرفهای</h3>
<x-nx::button variant="primary" wire:click="upgrade">ارتقا</x-nx::button>
</x-nx::card>
</x-nx::border-beam>
{{-- or on any element --}}
<div class="nx-beam" style="border-radius: 1rem; --nx-beam-duration: 4s">…</div>