Skip to content

Instantly share code, notes, and snippets.

@cochrancj
Created February 8, 2017 15:57
Show Gist options
  • Save cochrancj/e0757043e3453be470d0f3e04b0ad141 to your computer and use it in GitHub Desktop.
Save cochrancj/e0757043e3453be470d0f3e04b0ad141 to your computer and use it in GitHub Desktop.
#dailycssimages 19 - Cthulu
<div class="container">
<div class="cthulu">
<div class="head"></div>
<div class="face">
<div class="left-eyebrow eyebrow"></div>
<div class="left-eye eye"></div>
<div class="left-large eye-shine-large"></div>
<div class="left-small eye-shine-small"></div>
<div class="left-cheek cheek"></div>
<div class="right-eyebrow eyebrow"></div>
<div class="right-eye eye"></div>
<div class="right-large eye-shine-large"></div>
<div class="right-small eye-shine-small"></div>
<div class="right-cheek cheek"></div>
<div class="mouth">
<div></div>
<div></div>
<div></div>
</div>
</div>
<div class="tentacles">
<div class="leg"></div>
<div class="leg"></div>
<div class="leg"></div>
<div class="leg"></div>
<div class="leg"></div>
</div>
</div>
</div>
<div class="left-wing">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<div class="right-wing">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<h1>RAWR</h1>
// Source: https://s-media-cache-ak0.pinimg.com/originals/4d/e5/f7/4de5f73a94812b09a84bd9914c6226b5.png
// Source: http://2.bp.blogspot.com/-zVLCdwpjsl8/UUxekYPnQRI/AAAAAAAAJKE/1lyQLha1lEA/s1600/cutie_baby_cthulhu_card-p137185880106487594envwi_400.jpg
@import url('https://fonts.googleapis.com/css?family=Bahiana');
* {
box-style: border-box
}
body {
background-color: #495257;
}
h1 {
font-family: 'Bahiana', cursive;
font-size: 6em;
padding: 2%;
margin-left: 5em;
text-shadow: 2px 2px #BDCF9F;
}
.container {
position: absolute;
margin-left: 2em;
margin-top: 2em;
}
.cthulu {
margin-left: 5em;
}
.head {
position: absolute;
width: 15em;
height: 15em;
background-color: #9EB37A;
border-radius: 50%;
border: 0.5em solid black;
border-bottom-color: transparent;
}
.face {
margin-top: 1em;
margin-left: 0.3em;
position: absolute;
}
.eyebrow {
position: absolute;
width: 2em;
height: 2em;
border: 0.4em solid #BDCF9F;
border-radius: 50%;
border-top-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
}
.left-eyebrow {
position: absolute;
transform: rotate(-48deg);
margin-top: 5.2em;
margin-left: 5em;
z-index: 1;
}
.right-eyebrow {
position: absolute;
transform: rotate(240deg);
margin-top: 5.0em;
margin-left: 8.1em;
z-index: 1;
}
.eye {
position: absolute;
width: 3.5em;
height: 3.5em;
border-radius: 50%;
background-color: black;
}
.left-eye {
position: absolute;
margin-top: 7em;
margin-left: 3em;
}
.right-eye {
position: absolute;
margin-top: 7em;
margin-left: 9em;
}
.eye-shine-large {
width: 1.5em;
height: 1.5em;
position: absolute;
z-index: 2;
background-color: white;
border-radius: 50%;
}
.left-large {
margin-left: 4em;
margin-top: 7.5em;
}
.left-small {
margin-left: 5.1em;
margin-top: 8.9em;
}
.right-large {
margin-left: 10.1em;
margin-top: 7.3em;
}
.right-small {
margin-left: 11.3em;
margin-top: 8.5em;
}
.eye-shine-small {
width: 1em;
height: 1em;
position: absolute;
z-index: 2;
background-color: white;
border-radius: 50%;
}
.cheek {
width: 2em;
height: 2em;
position: absolute;
z-index: 2;
background-color: pink;
border-radius: 50%;
}
.left-cheek {
margin-left: 2.1em;
margin-top: 9.5em;
}
.right-cheek {
margin-left: 11.2em;
margin-top: 9.5em;
}
.mouth {
}
.mouth > div {
position: absolute;
width: 2em;
height: 2em;
border: 0.4em solid #BDCF9F;
border-radius: 50%;
border-top-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
}
.mouth > div:nth-child(1) {
position: absolute;
margin-top: 10em;
margin-left: 5em;
transform: rotate(280deg);
}
.mouth > div:nth-child(2) {
position: absolute;
margin-top: 11.8em;
margin-left: 6.5em;
transform: rotate(90deg);
}
.mouth > div:nth-child(3) {
position: absolute;
margin-top: 10em;
margin-left: 8.1em;
transform: rotate(260deg);
}
.leg {
width: 2em;
height: 6em;
border-radius: 50%;
border: 0.5em solid black;
border-top-color: transparent;
background-color: #9EB37A;
position: absolute;
z-index: -1;
}
.leg:nth-child(1) {
margin-top: 12.6em;
transform: rotate(30deg);
}
.leg:nth-child(2) {
margin-top: 13.6em;
margin-left: 3em;
transform: rotate(10deg);
}
.leg:nth-child(3) {
margin-top: 14.6em;
margin-left: 7em;
transform: rotate(-5deg);
}
.leg:nth-child(4) {
margin-top: 13.4em;
margin-left: 10em;
transform: rotate(-10deg);
}
.leg:nth-child(5) {
margin-top: 12.5em;
margin-left: 12.9em;
transform: rotate(-30deg);
}
.left-wing,
.right-wing {
background: #9EB37A;
width: 5.1em;
height: 5em;
position: absolute;
}
.left-wing {
margin-left: 3.5em;
margin-top: 3em;
z-index: -1;
-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";
}
.left-wing > div:nth-child(1) {
background: #495257;
border: 0.3em solid black;
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 5em;
height: 2em;
position: absolute;
z-index: 3;
top: 0.4em;
left: -2.3em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(-25deg);
}
.left-wing > div:nth-child(2) {
background: #495257;
border: 0.3em solid black;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 2em;
height: 2.8em;
position: relative;
z-index: 4;
top: 3.3em;
left: 0.4em;
border-radius: 50%;
border-bottom-right-radius: 7%;
}
.left-wing > div:nth-child(3) {
background: #495257;
border: 0.3em solid black;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 2em;
height: 2.5em;
position: relative;
z-index: 3;
top: 0.em;
left: 1.8em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(-12deg);
}
.left-wing > div:nth-child(4) {
background: #495257;
border: 0.3em solid black;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 3.9em;
height: 3.6em;
position: relative;
z-index: 6;
top: -2.9em;
left: 2.8em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(-46deg);
}
.left-wing > div:nth-child(5) {
background: #495257;
border: 0.3em solid black;
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 4em;
height: 2em;
position: absolute;
z-index: 3;
top: -2em;
left: 3em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(20deg);
}
.right-wing {
margin-left: 21.4em;
margin-top: 3em;
z-index: -1;
}
.right-wing > div:nth-child(1) {
background: #495257;
border: 0.3em solid black;
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 5em;
height: 2em;
position: absolute;
z-index: 3;
top: 0.4em;
left: -2.3em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(-25deg);
}
.right-wing > div:nth-child(2) {
background: #495257;
border: 0.3em solid black;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 2em;
height: 2.8em;
position: relative;
z-index: 4;
top: 3.3em;
left: 0.4em;
border-radius: 50%;
border-bottom-right-radius: 7%;
}
.right-wing > div:nth-child(3) {
background: #495257;
border: 0.3em solid black;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 2em;
height: 2.5em;
position: relative;
z-index: 3;
top: 0.em;
left: 1.8em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(-12deg);
}
.right-wing > div:nth-child(4) {
background: #495257;
border: 0.3em solid black;
border-bottom-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 3.9em;
height: 3.6em;
position: relative;
z-index: 6;
top: -2.9em;
left: 2.8em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(-46deg);
}
.right-wing > div:nth-child(5) {
background: #495257;
border: 0.3em solid black;
border-top-color: transparent;
border-right-color: transparent;
border-left-color: transparent;
width: 4em;
height: 2em;
position: absolute;
z-index: 3;
top: -2em;
left: 3em;
border-radius: 100%;
transform-origin: left top;
transform: rotate(20deg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment