Border Glide

Modern UI cards with a moving border and smooth transitions.

I
Isabelle Carlos
@isabellecarlos

"ScrollX UI has completely transformed how I build interfaces."

Installation

npx shadcn@latest add https://scrollxui.dev/registry/border-glide.json 

Usage

import { 
  BorderGlide, 
  BorderGlideCard, 
  BorderGlideContent, 
  BorderGlideHeader, 
  BorderGlideFooter, 
  BorderGlideTitle, 
  BorderGlideDescription 
} from "@/components/ui/border-glide"
<BorderGlide>
  <BorderGlideCard>
    <BorderGlideContent>
      <BorderGlideHeader>
        <BorderGlideTitle>Title One</BorderGlideTitle>
        <BorderGlideDescription>Description text</BorderGlideDescription>
      </BorderGlideHeader>
      <BorderGlideFooter>Footer content</BorderGlideFooter>
    </BorderGlideContent>
  </BorderGlideCard>
</BorderGlide>

API Reference

Border Glide

Modern UI cards with a moving border and smooth transitions.

Props

PropertyTypeDefaultDescription
childrenReactNoderequired
Content to be rendered inside BorderGlide or its subcomponents.
classNamestring-
Additional Tailwind CSS classes to style the component container.
autoPlayIntervalnumber5000
Time in ms before automatically sliding to the next card. Set 0 to disable autoplay.
borderDurationnumber3000
Duration in ms for the moving border animation to complete one cycle.
borderColorstring#3b82f6
Accepts Tailwind color hex, CSS color, or gradient.
borderWidthstring6rem
Width of the moving border element.
borderHeightstring6rem
Height of the moving border element.
borderOpacitynumber0.8
Opacity of the animated border.

Built withby Ahdeetai.