Created
February 28, 2013 13:29
-
-
Save anonymous/5056693 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
@keyframes pump { | |
0% { | |
top: 0; | |
left: 0; | |
font-size: 100px; | |
transform: rotate(0deg); | |
} | |
50% { | |
top: 50px; | |
left: 100px; | |
font-size: 150px; | |
} | |
100% { | |
top: 0; | |
left: 200px; | |
font-size: 100px; | |
transform: rotate(360deg); | |
} | |
} | |
#pump { | |
position: absolute; | |
color: red; | |
font-size: 100px; | |
animation: pump 1s infinite; | |
} | |
@keyframes ball { | |
0% { | |
left: -20%; | |
transform: rotate(0deg); | |
} | |
30% { | |
top: -10px; | |
} | |
80% { | |
left: 74%; | |
top: 250px; | |
} | |
100% { | |
left: 50%; | |
top: -50%; | |
transform: rotate(360deg); | |
} | |
} | |
#ball { | |
width: 200px; | |
height: 200px; | |
border-radius: 100px; | |
background-image: linear-gradient(left, red, green); | |
position: absolute; | |
top: 250px; | |
animation: ball 5s infinite; | |
} | |
#bat { | |
width: 10px; | |
height:300px; | |
background: black; | |
position: absolute; | |
right: 10%; | |
top: 100px; | |
transform: rotate(10deg); | |
transition: .8s 3.77s transform; | |
} |
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 id="pump">♥</div> | |
<div id="ball"></div> | |
<div id="divder"></div> | |
<div id="bat"></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":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"result"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment