Loading
Loading
Loading
mobile footer

Build the Interaction Layer Your Website is Missing.

Browse All EffectsBrowse All EffectsBrowse All EffectsUpgrade to ProUpgrade to ProUpgrade to Pro

70+ effects free, forever. No credit card.

© 2026 Hyperiux. All Rights Reserved.

AI Component CatalogueHey AI, Learn About Us
Platform

Vault

  • Documentation
  • Pricing
  • Blog
  • Community
  • NPM
  • MCP

Categories

  • All Effects
  • WebGL
  • Text
  • Backgrounds
  • Buttons
  • Carousels
  • Scroll
  • Components
  • Navigation
  • Cursor
  • Transitions
  • Loaders

Documents

  • Introduction
  • Installation
  • CLI
  • Dependencies
  • License

Legal

  • License Agreement
  • Terms of Service
  • Privacy Policy
  • Refund Policy
Socials
  • Twitter / X
  • LinkedIn
  • GitHub
  • Instagram
Contact Us
  • hello@hyperiux.com
New effects, in your inbox

Every new drop, plus the occasional behind-the-scenes build. No spam. Unsubscribe anytime.

All Effects
Featured ComponentsText AnimationsAnimated BackgroundsAnimated ButtonsCarousel EffectsScroll EffectsCreative ComponentsNavigationsCursor EffectsTransitionsLoadersWebGL & 3D Effects
Templates
IntroductionInstallationCLIDependenciesLicense
PricingBlogGithubNPMMCP Doc
Loading
Home/effects/Border Beam

Border Beam

Add a moving beam of light around cards, forms, CTAs, and feature panels to guide attention without changing the component’s real structure.

CSSLucide-react
DemoDemoDemo

Tune the Real Props

Background Color

Card or container background color.

Overview

Border Beam adds a moving line of light around a real UI surface.

It works best on cards, forms, pricing panels, feature blocks, login boxes, product callouts, and CTAs where the border needs a little attention without turning the whole component into a fire alarm.

Border Beam is not the content. It is the accent. The card, form, button, or panel should already make sense before the beam appears. The page job is emphasis: the moving border should guide the eye toward something useful, trusted, or worth clicking.

The production risk is overuse. A border beam feels premium when one or two surfaces earn it. Put it on every card and the page starts looking like a server rack auditioning for a nightclub.


Usage Code

page
1import BorderBeam from '@/components/effects/border-beam'2 3export default function Page() {4  return (5    <>6              <div className="relative flex justify-center items-center h-screen max-xl:justify-center">7              <div className="relative w-full max-w-[42vw] max-xl:max-w-[90%] mx-auto">8                <BorderBeam />9              </div>10            </div>11    </>12  )13}

Example Production Use Case

A SaaS pricing page can use Border Beam around the recommended plan card. The beam gives the preferred option a quiet premium signal while the plan name, price, features, and CTA remain fully readable. The outcome is emphasis: the eye lands where the decision is supposed to happen.


Best Used For

  • Pricing cards, featured plans, and upgrade prompts where one option needs controlled emphasis.
  • Login, waitlist, and demo-request panels where the container should feel active without hurting form usability.
  • Product feature cards, proof blocks, and CTAs where the border can guide attention without changing layout.

Not For

Not for dense card grids, long reading sections, dashboards, tables, destructive actions, or any UI where every container competes for attention.

Not for forms where the animated border distracts from labels, errors, validation, or submit state.


Performance Budget

Animate the beam with compositor-friendly transforms where possible, avoid layout-triggering border changes, keep glow blur restrained, and do not run dozens of beams at once. Pause or simplify decorative border motion when the section is offscreen.


Accessibility and Mobile

The beam is decorative. Keep it hidden from assistive technology, preserve visible focus states, and make sure the border animation never becomes the only selected, error, or active-state indicator. With reduced motion, the beam keeps looping but every animation runs three times slower; set active to false if you need a still border.


Common Mistakes

  • Adding Border Beam to every card on the page.
  • Letting the glow reduce text contrast or obscure form fields.
  • Using the beam as the only way to show selection, focus, error, or loading state.
  • Making the border animation louder than the actual CTA.

Changelog

Internal refactor: derived render-phase state replaces sync effects; no API change.
Added reduced motion support.
Initial release

API Reference

PropTypeDefaultDescription
sizestringmdChooses the beam motion family and sizing preset.
colorVariantstringcolorfulChooses the color palette used by the beam.
themestringautoSets the light, dark, or system-aware beam tuning.
activebooleantrueTurns the beam animation on or off.
strengthnumber2Scales the beam intensity.
durationnumber3.3Time for the beam to complete a loop.
beamWidthnumber9Thickness of the animated border beam.
backgroundColorcolor#212121Card or container background color.

Questions, Answered.

When should I use Border Beam?

Use Border Beam when one important surface needs a moving border accent: a pricing card, CTA panel, form container, or featured product block.

Should Border Beam be used on every card?

No. It works best as a priority signal. If every card has a beam, no card is important anymore.

Can Border Beam wrap a form?

Yes, but the form must remain fully usable. Labels, inputs, errors, focus states, and submit feedback should stay clearer than the border effect.

How should Border Beam behave on reduced motion?

Border Beam slows every loop to a third of its normal speed, but the beam keeps travelling. Set active to false if users need a fully static border.

Does Border Beam affect SEO?

No, if it only decorates real HTML content. The wrapped card, form, heading, and CTA should remain normal markup.

Can Hyperiux adapt Border Beam for a real brand system?

Yes. A custom version should define beam color, thickness, radius behavior, motion timing, theme variants, focus safety, reduced-motion fallback, source handoff, and implementation notes.

Request a Custom Animation

Need a custom effect? Tell us what to create.

Related Effects

Explore All EffectsExplore All EffectsExplore All Effects
Card Drift
Pro
GSAP

Card Drift

Components

Animated Form
Pro
zod

Animated Form

Components

Animated Modal
Pro
Lucide-react

Animated Modal

Components

Inertia Image
Pro
GSAP

Inertia Image

Cursor

Magnetic Image Trail
Pro
canvas

Magnetic Image Trail

Cursor