Getting Started
Components
- Animated Beam
- Animated Circular Progress Bar
- Animated Gradient Text
- Animated Grid Pattern
- Animated List
- Animated Shiny Text
- Animated Theme Toggler
- Aurora Text
- Backlight New
- Avatar Circles
- Bento Grid
- Blur Fade
- Border Beam
- Cool Mode
- Dia Text Reveal New
- Dither Shader New
- Dock
- Dot Pattern
- Dotted Map New
- File Tree
- Flickering Grid
- Grid Pattern
- Hero Video Dialog
- Hyper Text
- Icon Cloud
- Interactive Hover Button
- Lens
- Light Rays
- Line Shadow Text
- Magic Card
- Marquee
- Meteors
- Morphing Text New
- Motion Grid Beta
- Neon Gradient Card
- Number Ticker
- Orbiting Circles
- Pixel Image New
- Pointer
- Progressive Blur
- Pulsating Button
- Rainbow Button
- Retro Grid
- Ripple
- Ripple Button
- Scroll Progress
- Shimmer Button
- Shine Border
- Smooth Cursor
- Striped Pattern New
- Text Animate
- Typing Animation
- Video Text
- Warp Background
- Word Rotate Beta
Border Beam
A component for creating animated border beam effects around elements with customizable gradients, duration, and direction.
motion-sv
Login
Enter your credentials to access your account.
Installation
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/border-beam.json
Install dependencies
Install the required packages for this component:
pnpm add motion-sv
Copy the Source Code
Copy and paste the following code into your project:
border-beam.svelte
index.ts
Folder Structure
Folder Structure
Examples
2 Border Beams
Now Playing
Stairway to Heaven - Led Zeppelin
2:45 8:02
Reverse
Login
Enter your credentials to access your account.
Spring
Props
BorderBeam
A component for creating animated border beam effects.
| Name | Type | Default | Description |
|---|---|---|---|
size | number | 50 | The size of the border beam in pixels |
duration | number | 6 | The duration of the animation in seconds |
delay | number | 0 | The delay before the animation starts in seconds |
colorFrom | string | "#ffaa40" | The starting color of the gradient |
colorTo | string | "#9c40ff" | The ending color of the gradient |
transition | Transition | undefined | Custom motion transition configuration |
class | string | undefined | Additional CSS classes to apply |
style | string | undefined | Additional inline styles |
reverse | boolean | false | Whether to reverse the animation direction |
initialOffset | number | 0 | The initial offset position (0-100) |
borderWidth | number | 1 | The border width of the beam in pixels |