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
- Avatar Circles
- Bento Grid New
- Blur Fade
- Border Beam
- Cool Mode
- Dither Shader New
- Dock New
- Dot Pattern
- Dotted Map New
- File Tree
- Flickering Grid
- Grid Pattern
- Hero Video Dialog
- Hyper Text New
- Icon Cloud New
- Interactive Hover Button
- Lens New
- Light Rays New
- Line Shadow Text New
- Magic Card New
- Marquee
- Meteors New
- Morphing Text New
- Motion Grid New
- Neon Gradient Card New
- Number Ticker
- Orbiting Circles New
- Pixel Image New
- Pointer New
- Progressive Blur New
- Pulsating Button
- Rainbow Button
- Retro Grid New
- Ripple
- Ripple Button
- Scroll Progress
- Shimmer Button
- Shine Border New
- Smooth Cursor New
- 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 |