Border Beam
A stylish animated border beam effect with customizable size, duration, colors, and delay.
API
Prop Name | Type | Default | Description |
---|---|---|---|
class | string | "" | Additional CSS classes for custom styling. |
size | number | 200 | Size of the animated border beam effect. |
duration | number | 15 | Duration of the animation in seconds. |
borderWidth | number | 1.5 | Width of the border around the beam effect. |
anchor | number | 90 | Anchor point for the beam, determining its position along the border. |
colorFrom | string | "#ffaa40" | Starting color for the gradient of the beam. |
colorTo | string | "#9c40ff" | Ending color for the gradient of the beam. |
delay | number | 0 | Delay before the animation starts, in seconds. |
Component Code
You can copy and paste the following code to create this component:
BorderBeam.vue
Features
- Animated Border Beam: Adds a dynamic border beam effect that animates around the border.
- Customizable Gradient Colors: Adjust the
colorFrom
andcolorTo
props to create a gradient effect that suits your design. - Flexible Animation Settings: Control the size, duration, and delay of the animation to fine-tune the visual experience.
- Anchor Positioning: Use the
anchor
prop to set the starting position of the beam along the border.
Credits
- Ported from Magic UI.