Motion & Effects CSS Keyframes Conic Gradient Hardware Accelerated Tailwind v4

Border Beam

Dynamic glowing animated border beam gradient traveling continuously around cards and containers using pure CSS animations.

Interactive Preview

Live Edit & Viewport Resizer
Variants:

Installation

Add the Border Beam component to your project via CLI:

terminal bash
npx plain-ui add border-beam

Features

  • Smooth, hardware-accelerated CSS conic gradient animation
  • Customizable beam size, color spectrum, duration, and glow intensity
  • Works seamlessly with rounded cards, badges, and modals
  • Zero JavaScript runtime or canvas requirements

Variants & Examples

Compact Status Badge Beam

Minimal glowing beam around pill status badges.

border-beam-compact-status-badge-beam.html html
<div class="flex items-center justify-center p-6">
  <div class="relative inline-flex items-center gap-2 px-4 py-1.5 rounded-full bg-zinc-950 text-white text-xs font-medium border border-zinc-800 overflow-hidden shadow-lg">
    <div class="absolute inset-[-150%] animate-[spin_3s_linear_infinite] bg-[conic-gradient(from_0deg,transparent_0deg,transparent_300deg,#10b981_360deg)]"></div>
    <div class="relative z-10 flex items-center gap-2">
      <span class="w-2 h-2 rounded-full bg-emerald-400 animate-pulse"></span>
      <span>All Edge Networks Operational</span>
    </div>
  </div>
</div>

Attributes & Classes

Attribute / Prop Type Default Description
duration CSS duration 4s Orbit speed of the border beam.
gradient conic-gradient - Color stops for the glowing beam arc.

Accessibility & Keyboard Navigation

  • Animation respects prefers-reduced-motion media queries.
  • Pointer-events-none ensures beam overlay never blocks user clicks.
Components
#
Button
Interactive button primitives with rich visual variants, loading spinners, icons, and keyboard accessibility.
Core Primitives
#
Dialog
Native HTML <dialog> modal with backdrop blur, @starting-style entry animations, and accessible focus trapping.
Overlays & Modals
#
Popover
Native HTML Popover API (popover='auto') with zero JavaScript, CSS anchor positioning, and automatic light dismiss.
Overlays & Modals
#
Floating Label Input
Modern animated floating label form controls utilizing HTML5 placeholder-shown pseudo-class and Tailwind peer selectors.
Forms & Inputs
#
Border Beam
Dynamic glowing animated border beam gradient traveling continuously around cards and containers using pure CSS animations.
Motion & Effects
#
Shimmer Button
High-performance glowing shimmer button with animated radial light sweep across the surface.
Motion & Effects
#
Dock
macOS-inspired interactive dock with smooth pointer proximity magnification physics, hover tooltips, and app status dots.
Layout & Navigation
#
Bento Grid
Modern modular 12-column asymmetric bento box layout with spotlight card glow, metric widgets, and responsive auto-fitting.
Layout & Surfaces
#
Accordion
Pure HTML <details> and <summary> accordion with smooth height expansion animation and animated rotating chevrons.
Core Primitives
#
Tabs
Accessible, keyboard-navigable tab system with animated indicator slider and light-DOM panels.
Layout & Navigation
Getting Started
📖
Getting Started & Tailwind v4 Setup
Quick start guide and architecture overview
Navigate Select
Plain UI Search