Button (with Click and Hover effect)

HTML
<button class="button">Click Me</button>
CSS
html, body { height: 100%; width: 100%; display: flex; justify-content: center; align-items: center; background: linear-gradient(to left, #606c88 , #3f4c6b); font-family: 'Oswald', sans-serif; } .button { text-align: center; text-transform: uppercase; cursor: pointer; font-size: 20px; letter-spacing: 4px; position: relative; background-color: #16a085; border: none; color: #fff; padding: 20px; width: 200px; text-align: center; transition-duration: 0.4s; text-decoration: none; overflow: hidden; } .button:hover{ background: #fff; box-shadow: 0px 2px 10px 5px #1abc9c; color: #000; } .button:after { content: ""; background: #1abc9c; display: block; position: absolute; padding-top: 300%; padding-left: 350%; margin-left: -20px !important; margin-top: -120%; opacity: 0; transition: all 0.8s } .button:active:after { padding: 0; margin: 0; opacity: 1; transition: 0s }
JAVASCRIPT
Expand for more options Login