Hover effect appears when a user positions computer cursor over an element without activating it.
Showing the animation effect
As you can see in the above example, you can add any animation to any element on the page by using the following classes:
transition: used to animate the chaged properties on hover,
duration-x: used to define the duration of the animation where
xis the time in milliseconds; e.g.
Then, you should be able to add any type of animation by changing the
property on hover by using the class:
Hey there 👋 we want to make Tailwind Elements a community-driven project. It's open source and free, and we would like it to stay that way. If you enjoy it, help the project grow by sharing it with your peers. Every share counts, thank you!
Change the color and opacity by manipulating color and
.hover:opacity-* classes. Have a look at our
docs to learn more.
Set a fancy gradient as an overlay.
.hover:scale-110 class to any element to apply zoom.
.hover:shadow-lg class to any element to apply the effect.
If you are looking for more advanced options, try Bootstrap Hover effects from MDBootstrap.