I want to do this vanilla css animation to tailwind can somebody help me what is the best way?
4 Replies
use the official tailwind docs it's not that hard
i manage to do it w/o knowing tailwing
As Mannix has said, it is fairly straight forward if you follow the Tailwind docs.
I would probably do something like this:
(note - I have placed the pseudo element classes on new lines just for clarity)
https://codepen.io/cbolson/pen/NWZgmmm
yes I finally did it that way. I brute forced to see equivalent tailwind properties. I was just hoping there was another way or proper way to do it in tailwind. maybe i should have cleared my question.
that is tailwind for you. you can make custom classes that you can use https://tailwindcss.com/docs/adding-custom-styles#adding-component-classes
Adding Custom Styles - Tailwind CSS
Best practices for adding your own custom styles to Tailwind.