Border Trail

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

Examples

Border Trail Card

Border Trail Loading Card

Preview buildBranch feat/onboarding-checklist

Border Trail Textarea

Installation

npx shadcn@latest add https://ui.ndekocode.dev/r/motion-border-trail.json

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.