Be careful not to ruin your website design and make sure you are using the buttons that fit your design the most. Some of the effects are quite, let's call them 'dramatic' and those effects may be suited for a page where you only have 1 button or just a few.
The animations are very easy to customize since they are made out of just CSS. Let's get started explaining the sixth example.
HTMLLet's make the first button of the sixth example.
Inside the '.button6' class the text is wrapped in a span. The span is essential for the effect to work properly.
CSSFirst we have to create the usual set of styles for a button. One important thing is the relative position which will help to hold the other elements.
The span has an absolute position because i want the text inside the button to float above the next element.
I have created a 'before' selector this will be the element that generates the effect. The element will have an absolute position, an initial size of half of the total size and the opacity set to 0. We will create the effect by making the element scale to the full size and setting the opacity to 100%.