If you like this article, don’t forget to click on that heart button to show your appreciation.
You’re probably thinking: That’s an odd way to start an article…
But I just wanted to show you that buttons really are everywhere!
🤖 To See Code, Click on One of The Links
|In And Out||CSS Button that slides its background to the right on click or hover and more to the right again on click or hover.|
|Progress Fold||CSS Button that paper-folds one side to reveal a progress-bar on hover or click.|
|Gooey||CSS Button that moves two circles closer to each other that have a gooey and slimy effect on hover or click.|
|Rubberband||CSS Button that plays the rubberband animation from animate.css on hover or click.|
|Float Up||CSS Button that floats up with a box shadow below it on click or hover.|
|Double Vertical||CSS Button with two backgrounds that slide vertically to the center on click or hover.|
|Vertical Marquee||CSS Button that translates its text vertically on hover or click.|
|Striped Zebra||CSS Button with striped background that scrolls on click or|
You’re bored. So you take your phone out, and you click buttons to —
- turn it on (a physical button)
- open the twitter app (an icon button)
- go to the home page (a navigation button)
- like and reply to a tweet (an action button)
and the list goes on and on….
I think that you get it by now, we are obsessed with pressing buttons! So let me propose an idea…
Buttons should be more fun! And by “fun”, I really mean —
- and modern.
But as web developers, we already have to worry about so many other things —
- accessibility (a11y),
- web vitals,
So imagine if someone could just take one little hurdle away, so that we can focus on the more important stuff…
I decided that I should be that person. I took on the responsibility of building buttons that are —
- accessible (uses ARIA attributes),
- modern in style,
- responsive (works on desktop and mobile).
And not just that, I also decided to make ONE HUNDRED different styles for these buttons. You are guaranteed to find that one style that just works on your website!
Now let’s break-apart one of my favorite button styles: The Overfold.
It first starts by animating a
clip-path from one corner to another.
The second part of the effect involves scrolling text vertically, while clipping it using
Did you know? I’m working on 150 CSS Buttons. Follow me to be the first to know when it drops! 🤗