Created
April 10, 2013 01:02
-
-
Save jackarmley/5350858 to your computer and use it in GitHub Desktop.
Spinning flower
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
/** | |
* Spinning flower | |
*/ | |
@-webkit-keyframes flowerspin{ | |
0%{ | |
-webkit-transform:rotate(0deg); | |
} | |
100%{ | |
-webkit-transform:rotate(360deg); | |
} | |
} | |
.flower{ | |
position:absolute; | |
top:50%; | |
left:50%; | |
width:100px; | |
height:100px; | |
margin:-50px 0 0 -50px; | |
border-radius:100%; | |
background:-webkit-radial-gradient(pink 20%,white 100%); | |
box-shadow: | |
50px 0 0 5px rgba(20,200,255,.5), | |
0 50px 0 5px rgba(20,200,255,.5), | |
-50px 0 0 5px rgba(20,200,255,.5), | |
0 -50px 0 5px rgba(20,200,255,.5) | |
; | |
-webkit-animation:flowerspin 5s infinite linear; | |
} |
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
<!-- content to be placed inside <body>…</body> --> | |
<div class="flower"></div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment