Docs
Animated Border Trail
A container with animated border trail, this can be used for buttons as well as cards.
Installation
Add this CSS for angle
property
Update tailwind.config.js
Add the following to your tailwind.config.js file.
Run the following command
It will create a new file animated-border-trail.tsx
inside the components/animata/container
directory.
Paste the code
Open the newly created file and paste the following code:
Credits
Built by hari
@jh3yy on Twitter
I tried using his method but the transition in the border looked weird in my case so, I created this version.
This can also be created using clip-path
but I like this method better.