Eight button examples showcasing some basic - but fun - animations. From a smooth hover effect, to icons, to the old school "realistic" keyboard button.
Buttons guide users, support your site's branding, and invite clicks. At their core, they're just simple rectangles. But add a touch of animation, and they don’t just look better - they feel more responsive and refined.
The most basic use of animation is to transition smoothly between the default and hover states. The user might not consciously notice it - and that’s exactly the goal. The change feels natural instead of abrupt, especially when there’s a strong contrast between the two states. Want to go a little further? Try fading between gradients or using a sliding animation to reveal a different color underneath.
Another popular option is to animate an icon into view on hover. This subtle motion adds energy and reinforces the call to action. Arrows are a classic choice, but any icon that fits your design can work.
If you’re looking for something simpler, you can start with these simply styled button examples instead.
Below are eight button examples to serve as inspiration for your website. For this demonstration, each button is a <div> wrapped in an <a> tag, rather than a <button> or <input> element. This setup offers more flexibility and ease when styling. Anchor (<a>) tags alone can be temperamental with padding, while <button> elements don't naturally navigate anywhere—you'd need JavaScript or an anchor wrapper to make them clickable. As for <input> buttons, they're limited to forms and come with their own quirky styling behaviors.
That’s why the base structure for the buttons in this post looks like this:
<a href="#"><div>Click here!</div></a>