pure css pen made earth day 2018
Created
April 25, 2018 19:49
-
-
Save cluzier/8d70f0a50c05469e2f18b2e976dd5106 to your computer and use it in GitHub Desktop.
Earth Day 2018
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
<link href="https://fonts.googleapis.com/css?family=Nanum+Pen+Script" rel="stylesheet"> | |
<div class="main">Earth Day</div> | |
<div class="pic"></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
html, body { | |
background: #202B33; | |
overflow: hidden; | |
} | |
.main { | |
position: relative; | |
top: 120px; | |
text-align: center; | |
padding: 150px 0; | |
font-family: 'Nanum Pen Script', cursive; | |
font-size: 100px; | |
color: white; | |
opacity: .6; | |
z-index: 2; | |
} | |
.pic { | |
border-radius: 50%; | |
width: 200px; | |
height: 200px; | |
background: transparent; | |
background-image:url(https://pre00.deviantart.net/384e/th/pre/i/2016/034/4/5/earth___adobe_illustrator__hd__by_shaddow24-d9qcch8.png); | |
background-size: contain; | |
z-index: 1; | |
margin: 0 auto; | |
position: relative; | |
bottom: 350px; | |
animation: pulse 2s infinite; | |
} | |
@keyframes pulse { | |
0% { | |
-moz-box-shadow: 0 0 0 0 rgb(30,47,73) | |
box-shadow: 0 0 0 0 rgba(204,169,44, 0.4); | |
} | |
70% { | |
-moz-box-shadow: 0 0 0 10px rgb(38,58,91); | |
box-shadow: 0 0 0 10px rgb(38,58,91); | |
} | |
100% { | |
-moz-box-shadow: 0 0 0 0 rgb(38,58,91); | |
box-shadow: 0 0 0 0 rgb(38,58,91); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment