@c2n/border-beam
v0.0.24
Published
Decorative, pointer-transparent gradient that travels inside a masked border channel. It supports multiple evenly distributed beams plus configurable size, line width, outset, duration and direction.
Downloads
2,432
Maintainers
Readme
Border Beam
Decorative, pointer-transparent gradient that travels inside a masked border channel. It supports multiple evenly distributed beams plus configurable size, line width, outset, duration and direction.
npm install @c2n/border-beam<div class="card">
Card content
<c2-border-beam side="top"></c2-border-beam>
</div>
<style>
.card {
position: relative;
overflow: hidden;
border-radius: 12px;
}
c2-border-beam {
--c2-border-beam__beam--size: 80px;
--c2-border-beam__beam--duration: 6s;
}
</style>