A Pen by Domas Makšimas on CodePen.
Created
September 21, 2014 16:53
-
-
Save amirnaeem/a01a220fb45d87974a25 to your computer and use it in GitHub Desktop.
A Pen by Domas Makšimas.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button class='push-button'>push it</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300italic); | |
@keyframes effect { | |
0% { | |
box-shadow: 0 0 0 0px #fff, | |
0 0 0 5px rgba(35, 124, 234, 0.5); | |
} | |
} | |
.push-button { | |
font-family: 'Open Sans Condensed', sans-serif; | |
font-style: italic; | |
font-weight: 300; | |
display: block; | |
font-size: 30px; | |
width: 5em; | |
height: 5em; | |
border: none; | |
background: #0ca2cc; | |
color: #fff; | |
border-radius: 50%; | |
overflow: hidden; | |
position: relative; | |
margin: 150px auto 0; | |
box-shadow: 0 0 0 25px #fff, | |
0 0 0 30px rgba(35, 124, 234, 0); | |
} | |
.push-button:not(:active) { | |
animation: effect 0.5s; | |
} | |
.push-button:focus { | |
outline: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment