Border Trail

Animated border effect that moves along the edges of its parent container.

Examples

Border Trail Card

Border Trail Loading Card

Border Trail Textarea

Installation

npx motion-primitives@latest add border-trail

Component API

Border Trail

PropTypeDefaultDescription
classNamestringAdditional CSS classes for styling the border trail.
sizenumber60Size of the animated border effect.
transitionTransitionCustom transition settings for the animation.
onAnimationComplete() => voidCallback function triggered when the animation completes.