Skip to content

Instantly share code, notes, and snippets.

@aristretto
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aristretto/bf41f0aeb79144a2ec42 to your computer and use it in GitHub Desktop.
Save aristretto/bf41f0aeb79144a2ec42 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<div class="zenefits">
<div class="piece wing-back"></div>
<div class="head">
<div class="piece head-1"></div>
<div class="piece head-2"></div>
<div class="piece head-3"></div>
</div>
<div class="wing-front">
<div class="piece wing-front-1"></div>
<div class="piece wing-front-2"></div>
<div class="piece wing-front-3"></div>
<div class="piece wing-front-4"></div>
</div>
<div class="tail">
<div class="piece tail-1"></div>
<div class="piece tail-2"></div>
<div class="piece tail-3"></div>
</div>
</div>
// ----
// Sass (v3.4.13)
// Compass (v1.0.3)
// ----
$dark-orange: rgb(247, 165, 57);
$orange: rgba(250, 175, 66, 1);
$shadow: rgba(0,0,0,.1);
* {
box-sizing: border-box;
}
.zenefits {
position: relative;
margin-top: 150px;
margin-left: 60px;
}
.piece {
position: absolute;
}
.wing-back {
border-left: 94px solid transparent;
border-bottom: 248px solid $dark-orange;
border-right: 107px solid $dark-orange;
border-top: 126px solid transparent;
transform: skew(-13.1deg) rotate(1deg) matrix(0.7,0.3,0,0.7,101.9,-202);
z-index: -1;
}
.head-1 {
border-top: 0px solid $orange;
border-left: 100px solid transparent;
border-right: 105px solid $orange;
border-bottom: 51px solid transparent;
height: 0;
width: 0;
z-index: 0;
transform: matrix(1.4,0,0.1,0.4,-120,59);
}
.head-2 {
height: 50px;
width: 90px;
transform: matrix(1.5, 0.3, -1.1, 1, 111, 49);
background-color: $orange;
left: 0;
top: 0;
box-shadow: 0px -1px 1px 1px $shadow;
}
.head-3 {
height: 50px;
width: 50px;
background-color: $orange;
transform: skew(-8deg) matrix(3, 0.5, -1.7, -2.4, 139, 83);
top: 0;
left: 70px;
box-shadow: -3px -3px 3px 2px $shadow;
}
.wing-front-1 {
height: 15px;
width: 55px;
background-color: $orange;
transform: skew(5deg) rotate(20deg) matrix(1.9, -0.2, -0.4, 7.7, 239, 27);
box-shadow: -1px 0px 2px $shadow;
}
.wing-front-2 {
border-left: 17px solid $orange;
border-right: 0px solid transparent;
border-bottom: 0px solid $orange;
height: 0;
width: 0;
z-index: 10;
box-shadow: -2px -12px 10px -2px $shadow;
border-top: 125px solid transparent;
transform: skew(-52deg) rotate(127deg) matrix(2.3, 15.7, 0.3, -0.6, -164, -245);
}
.wing-front-3 {
z-index: 16;
box-shadow: -2px 39px 28px -20px $shadow;
border-top: 283px solid transparent;
border-bottom: 0px solid $orange;
border-left: 0 solid $orange;
border-right: 85px solid $orange;
transform: rotate(23deg) skew(37deg) matrix(-1.2, 2.3, 0.5, 0, 360, -248);
}
.wing-front-4 {
border-top: 130px solid transparent;
border-bottom: 0px solid $orange;
border-left: 0 solid $orange;
border-right: 121px solid $orange;
transform: rotate(4deg) skew(9deg) matrix(-1, 0.1, 0.7, -1.7, 352, -73);
}
.tail-1 {
border-top: 57px solid transparent;
border-right: 2px solid transparent;
border-left: 80px solid $orange;
border-bottom: 24px solid $orange;
transform: rotate(10deg) matrix(1, -0.1, -0.4, 1.2, 324, 42);
box-shadow: 20px 21px 6px -22px $shadow;
}
.tail-2 {
border-bottom: 52px solid $orange;
border-left: 45px solid transparent;
border-top: 0px solid transparent;
border-right: 0 solid transparent;
transform: rotate(7deg) matrix(0,-2,0.9,-0.1,350,137);
box-shadow: 1px 4px 5px -2px $shadow;
z-index: -1;
}
.tail-3 {
border-top: 127px solid transparent;
border-right: 0 solid transparent;
border-bottom: 0 solid transparent;
border-left: 116px solid $orange;
transform: skew(-36.6deg) matrix(1.5,1,-0.8,-0.9,487,185.8);
z-index: -2;
}
* {
box-sizing: border-box;
}
.zenefits {
position: relative;
margin-top: 150px;
margin-left: 60px;
}
.piece {
position: absolute;
}
.wing-back {
border-left: 94px solid transparent;
border-bottom: 248px solid #f7a539;
border-right: 107px solid #f7a539;
border-top: 126px solid transparent;
transform: skew(-13.1deg) rotate(1deg) matrix(0.7, 0.3, 0, 0.7, 101.9, -202);
z-index: -1;
}
.head-1 {
border-top: 0px solid #faaf42;
border-left: 100px solid transparent;
border-right: 105px solid #faaf42;
border-bottom: 51px solid transparent;
height: 0;
width: 0;
z-index: 0;
transform: matrix(1.4, 0, 0.1, 0.4, -120, 59);
}
.head-2 {
height: 50px;
width: 90px;
transform: matrix(1.5, 0.3, -1.1, 1, 111, 49);
background-color: #faaf42;
left: 0;
top: 0;
box-shadow: 0px -1px 1px 1px rgba(0, 0, 0, 0.1);
}
.head-3 {
height: 50px;
width: 50px;
background-color: #faaf42;
transform: skew(-8deg) matrix(3, 0.5, -1.7, -2.4, 139, 83);
top: 0;
left: 70px;
box-shadow: -3px -3px 3px 2px rgba(0, 0, 0, 0.1);
}
.wing-front-1 {
height: 15px;
width: 55px;
background-color: #faaf42;
transform: skew(5deg) rotate(20deg) matrix(1.9, -0.2, -0.4, 7.7, 239, 27);
box-shadow: -1px 0px 2px rgba(0, 0, 0, 0.1);
}
.wing-front-2 {
border-left: 17px solid #faaf42;
border-right: 0px solid transparent;
border-bottom: 0px solid #faaf42;
height: 0;
width: 0;
z-index: 10;
box-shadow: -2px -12px 10px -2px rgba(0, 0, 0, 0.1);
border-top: 125px solid transparent;
transform: skew(-52deg) rotate(127deg) matrix(2.3, 15.7, 0.3, -0.6, -164, -245);
}
.wing-front-3 {
z-index: 16;
box-shadow: -2px 39px 28px -20px rgba(0, 0, 0, 0.1);
border-top: 283px solid transparent;
border-bottom: 0px solid #faaf42;
border-left: 0 solid #faaf42;
border-right: 85px solid #faaf42;
transform: rotate(23deg) skew(37deg) matrix(-1.2, 2.3, 0.5, 0, 360, -248);
}
.wing-front-4 {
border-top: 130px solid transparent;
border-bottom: 0px solid #faaf42;
border-left: 0 solid #faaf42;
border-right: 121px solid #faaf42;
transform: rotate(4deg) skew(9deg) matrix(-1, 0.1, 0.7, -1.7, 352, -73);
}
.tail-1 {
border-top: 57px solid transparent;
border-right: 2px solid transparent;
border-left: 80px solid #faaf42;
border-bottom: 24px solid #faaf42;
transform: rotate(10deg) matrix(1, -0.1, -0.4, 1.2, 324, 42);
box-shadow: 20px 21px 6px -22px rgba(0, 0, 0, 0.1);
}
.tail-2 {
border-bottom: 52px solid #faaf42;
border-left: 45px solid transparent;
border-top: 0px solid transparent;
border-right: 0 solid transparent;
transform: rotate(7deg) matrix(0, -2, 0.9, -0.1, 350, 137);
box-shadow: 1px 4px 5px -2px rgba(0, 0, 0, 0.1);
z-index: -1;
}
.tail-3 {
border-top: 127px solid transparent;
border-right: 0 solid transparent;
border-bottom: 0 solid transparent;
border-left: 116px solid #faaf42;
transform: skew(-36.6deg) matrix(1.5, 1, -0.8, -0.9, 487, 185.8);
z-index: -2;
}
<div class="zenefits">
<div class="piece wing-back"></div>
<div class="head">
<div class="piece head-1"></div>
<div class="piece head-2"></div>
<div class="piece head-3"></div>
</div>
<div class="wing-front">
<div class="piece wing-front-1"></div>
<div class="piece wing-front-2"></div>
<div class="piece wing-front-3"></div>
<div class="piece wing-front-4"></div>
</div>
<div class="tail">
<div class="piece tail-1"></div>
<div class="piece tail-2"></div>
<div class="piece tail-3"></div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment