I've been working on creating a cool animated transition effect for my button where a chevron icon appears when the user hovers over it. I'm currently developing the website using NextJS and TailwindCSS, and I've implemented a group hover feature to make the chevron visible when the button is hovered over. Everything seems to be functioning correctly, except for the fact that the transition effect isn't happening as smoothly as I'd like. The chevron just pops up instantly instead of gradually appearing.
Below you can find the code snippet I'm currently using. Any assistance with this issue would be greatly appreciated.
<a
href={url}
className="ease-out duration-300 transition-all group inline-block rounded-xl bg-accent2 px-4 py-2 text-white font-bold hover:bg-accent1 hover:text-black"
>
<span className="flex items-center gap-2">
<span>{text}</span>
<IconChevronRight className="ease-out duration-300 transition-all hidden group-hover:block"/>
</span>
</a>