Created
February 21, 2013 15:32
-
-
Save ckurdziel/5005492 to your computer and use it in GitHub Desktop.
Pounding heart 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
/* Pounding heart animation */ | |
@keyframes pound { | |
from { transform: scale (.92); } | |
22% { transform: scale(1.07); } | |
32% { transform: scale(1);} | |
42% { transform: scale(1.07); } | |
to { transform: scale(1); } | |
} | |
.heart { | |
display: inline-block; | |
font-size: 70px; | |
color: #e00; | |
animation: pound 1.5s infinite; | |
animation-timing-function: ease-in-out; | |
transform-origin: center; | |
} | |
body { text-align: center; } |
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
<div class="heart">♥</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":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment