Created
February 14, 2014 16:18
-
-
Save alicelara/9003991 to your computer and use it in GitHub Desktop.
Happy Valentine's Day
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
/**Happy Valentine's Day | |
*/ | |
*, *:before, *:after { | |
box-sizing: border-box | |
} | |
body{ | |
background-color:#E03840; | |
} | |
.happy{ | |
margin-top: 80px; | |
font-family: 'Cookie', cursive; | |
font-size: 5em; | |
text-align: center; | |
color: #FFF; | |
text-shadow: 2px 2px 2px #000; | |
} | |
.wrapper { | |
position:relative; | |
width:385px; | |
margin: 10px auto; | |
} | |
.circle { | |
width: 200px; | |
height: 200px; | |
background-color:#FFF; | |
border-radius: 100px; | |
-webkit-animation: grows 1s infinite ease; | |
} | |
.right { | |
position: absolute; | |
top: 0; | |
left: 185px; | |
} | |
.bottom { | |
position: relative; | |
top: -64px; | |
right: 6.02px; | |
width: 0px; | |
height: 0px; | |
border-radius: 100px; | |
border-left: 199px solid transparent; | |
border-right: 199px solid transparent; | |
border-top: 190px solid #fff; | |
-webkit-animation: grow 1s infinite ease; | |
} | |
.shadow { | |
position:relative; | |
left: 2px; | |
top: 2px; | |
} | |
.circle-shadow { | |
position:absolute; | |
width: 200px; | |
height: 200px; | |
background-color:#000; | |
border-radius: 100px; | |
-webkit-animation: grows 1s infinite ease; | |
} | |
.bottom-shadow { | |
position: absolute; | |
top: 136px; | |
right: -6px; | |
width: 0px; | |
height: 0px; | |
border-radius: 100px; | |
border-left: 199px solid transparent; | |
border-right: 199px solid transparent; | |
border-top: 190px solid #000; | |
-webkit-animation: grow 1s infinite ease; | |
} | |
@-webkit-keyframes grows { | |
from {-webkit-transform: scale(1);} | |
to {-webkit-transform: scale(1.03);} | |
} | |
@-webkit-keyframes grow { | |
from {-webkit-transform: scale(1);} | |
to {-webkit-transform: scale(1.03);} | |
} |
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
<link href='http://fonts.googleapis.com/css?family=Cookie' rel='stylesheet' type='text/css'> | |
<!-- content to be placed inside <body>…</body> --> | |
<div class="happy"> Happy Valentine's Day</div> | |
<div class="wrapper"> | |
<div class="shadow"> | |
<div class="circle-shadow"></div> | |
<div class="circle-shadow right"></div> | |
<div class="bottom-shadow"></div> | |
</div> | |
<div class="heart-top"> | |
<div class="circle"></div> | |
<div class="circle right"></div> | |
<div class="bottom"></div> | |
</div> | |
</div> |
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
// alert('Hello world!'); |
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","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