Created
February 12, 2013 08:42
-
-
Save aurelkurtula/4761007 to your computer and use it in GitHub Desktop.
exploring Animation
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
/* exploring Animation */ | |
p{ | |
background: blue; | |
display: block; | |
width: 200px; | |
height: 100px; | |
border-radius: 200px 200px 0 0; | |
margin:40px; | |
position: relative; | |
animation: movingi infinite 6s alternate; | |
} | |
@keyframes movingi { | |
0% { | |
margin-left: 0px; margin-top: 0; | |
} | |
50% { | |
width: 100px; | |
height: 50px; | |
} | |
100% { | |
margin-left: 600px; | |
margin-top: 0px; | |
} | |
} | |
p:after{ | |
content: ' '; | |
display: block; | |
width: 110px; height: 60px; | |
border-radius: 200px 200px 0 0; | |
background: blue; | |
position: absolute; | |
left: -40px; | |
top: 40px; | |
} | |
p:before{ | |
content: ' '; | |
display: block; | |
width: 110px; height: 60px; | |
border-radius: 200px 200px 0 0; | |
background: blue; | |
position: absolute; | |
left: 140px; | |
top: 40px; | |
animation: moving infinite 6s alternate; | |
} | |
@keyframes moving { | |
50% { | |
width: 55px; | |
height: 30px; | |
} | |
100% { | |
width: 110px; height: 60px; | |
} | |
} | |
span:active{ | |
color:red; | |
} | |
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> --> | |
<p></p> | |
<span>sometthing</span> |
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-vertical","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