Created
March 1, 2012 05:59
-
-
Save axelav/1947687 to your computer and use it in GitHub Desktop.
salmon & blue circle - bouncing, animated
This file contains hidden or 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
/** | |
* salmon & blue circle | |
*/ | |
button { | |
color:#ff555d; | |
font-family:futura; | |
font-size:48px; | |
font-style:italic; | |
font-weight:800; | |
letter-spacing:10px; | |
text-transform:uppercase; | |
text-shadow:10px 10px 20px #40B8ED, -10px -10px 20px #40B8ED, -10px 10px 20px #40B8ED, 10px -10px 20px #40B8ED; | |
border:0px inset #eee; | |
border-radius:500px; | |
box-shadow:2px 2px 20px #40B3ED, -1px -1px 10px #fff; | |
background:linear-gradient(70deg, #ff555d, #ccc); | |
/*background:radial-gradient(80px 80px, #ff555d 50px, #40B8ED 40%, #40B3ED 45%, #000 85%);*/ | |
width:500px; | |
height:500px; | |
position:absolute; | |
top:20px; | |
left:15%; | |
} | |
button span { | |
text-indent:0; | |
position:relative; | |
top:0; | |
left:0; | |
display:block; | |
} | |
button { | |
animation:shake 2.8s ease-in-out infinite; | |
} | |
span { | |
animation:spanShake 2.8s ease-in-out infinite; | |
} | |
@keyframes "shake" { | |
0% { top:20px; } | |
25% { top:40px; } | |
50% { top:25px; } | |
75% { top:40px; } | |
100% { top:20px; } | |
} | |
@keyframes "spanShake" { | |
0% { top:0px; } | |
25% { top:-10px; } | |
50% { top:-5px; } | |
75% { top:-10px; } | |
100% { top:0px; } | |
} | |
This file contains hidden or 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><span>infinite mushrooms</span></button> |
This file contains hidden or 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
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment