A Pen by Carolyn Cochran on CodePen.
Created
February 17, 2017 00:23
-
-
Save cochrancj/1efb58ab44b5daeb57c1c2c72e26b515 to your computer and use it in GitHub Desktop.
#dailycssimages 26 - Icon Of Choice
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="container"> | |
<div class="goodlinc-icon"> | |
<div class="rays"> | |
<div class="ray"></div> | |
<div class="ray"></div> | |
<div class="ray"></div> | |
</div> | |
<div class="sunrise"></div> | |
<div class="g"> | |
<h1>g</h1> | |
</div> | |
</div> | |
</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
@import url('https://fonts.googleapis.com/css?family=Heebo:900'); | |
* { | |
box-sizing: border-box; | |
} | |
body { | |
background-color: gainsboro; | |
} | |
.container { | |
margin: 5em 5em; | |
position: absolute; | |
width: 10em; | |
height: 10em; | |
} | |
.goodlinc-icon { | |
width: 13.5em; | |
height: 15.5em; | |
background: rgb(255,160,42); | |
/* background: -moz-linear-gradient(top, rgb(255,160,42) 0%, rgb(224,126,3) 100%); | |
background: -webkit-linear-gradient(top, rgb(255,160,42) 0%,rgb(224,126,3) 100%); | |
background: linear-gradient(to bottom, rgb(255,160,42) 0%,rgb(224,126,3) 100%); | |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffa02a', endColorstr='#e07e03',GradientType=0 ); */ | |
border: 5px solid #5BA5FA; | |
border-radius: 2em; | |
animation: sunsetting 5s infinite; | |
} | |
.g { | |
padding: 0 2em 0 4em; | |
} | |
h1 { | |
font-family: 'Heebo', sans-serif; | |
font-size: 10em; | |
margin: 0; | |
color: white; | |
-webkit-text-fill-color: white; | |
-webkit-text-stroke-width: 5px; | |
-webkit-text-stroke-color: #5BA5FA; | |
} | |
.rays { | |
position: absolute; | |
left: 3em; | |
top: 3em; | |
} | |
.ray { | |
width: 0; | |
height: 0; | |
border-left: 0.5em solid transparent; | |
border-right: 0.5em solid transparent; | |
border-bottom: 2em solid yellow; | |
position: absolute; | |
} | |
.ray:nth-child(1) { | |
transform: rotate(-32deg); | |
left: 1em; | |
top: 0.2em; | |
} | |
.ray:nth-child(2) { | |
transform: rotate(-62deg); | |
left: -0.5em; | |
top: 1.8em; | |
} | |
.ray:nth-child(3) { | |
transform: rotate(-92deg); | |
left: -0.7em; | |
top: 4em; | |
} | |
.sunrise { | |
width: 5em; | |
height: 5.1em; | |
border-radius: 1.9em; | |
box-shadow: 0px 13px 0 0 yellow; | |
position: absolute; | |
/* transform: rotate(90deg); */ | |
left: 5.3em; | |
/* top: 5.4em; */ | |
animation: rise 5s infinite ease-in-out; | |
transform: translate(-50%, 50%); | |
background-clip: content-box; | |
} | |
@keyframes sunsetting { | |
0% { | |
background-color: #ffffff; | |
} | |
30% { | |
background-color: #4BCCEF; | |
} | |
70% { | |
background-color: #220854; | |
} | |
100% { | |
background-color: #FF7C3B; | |
} | |
} | |
@keyframes rise { | |
0% { | |
top: 110%; | |
transform: scale(0.4); | |
} | |
30% { | |
top: 2.4em; | |
transform: rotate(30deg) scale(0.6); | |
} | |
70% { | |
top: 3.4em; | |
transform: rotate(45deg) scale(0.8); | |
border-color: rgba(255, 255, 255, 0.4); | |
} | |
100% { | |
top: 5.4em; | |
transform: rotate(90deg) scale(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment