HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html> tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body> tags in a basic HTML5 template. If you need things in the <head> of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit- or -moz-.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
If the stylesheet you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by Skypack, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ES6 import usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<div class="container">
<div class="mulan">
<div class="background">
<div class="soft_side">
<div class="cherry">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>
<div class="dark_side">
<div class="sparks">
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
<i></i>
</div>
</div>
</div>
<!-- sword -->
<div class="sword">
<div class="sword_left"></div>
<div class="sword_base">
<div class="sword_base_circle"></div>
<div class="sword_base_triangle"></div>
<div class="sword_base_cabe"></div>
</div>
</div>
<!-- Mulan Soldier -->
<div class="mulan_soldier">
<div class="hair">
<div class="hair_top"></div>
<div class="hair_side"></div>
</div>
<div class="ear"></div>
<div class="face">
<div class="face_bottom"></div>
<div class="face_up"></div>
</div>
<div class="eyebrow"></div>
<div class="eye">
<div class="eye_shadow"></div>
<div class="eye_make"></div>
<div class="eye_base">
<div class="inside"></div>
</div>
</div>
<!-- Body -->
<div class="aux"></div>
<div class="hand2"></div>
<div class="hand"></div>
<div class="fist"></div>
<div class="arm"></div>
<div class="body"></div>
<div class="shoulder"></div>
<div class="collar_before"></div>
<div class="collar_aux"></div>
<div class="neck"></div>
<div class="collar"></div>
</div>
<!-- Mulan original -->
<div class="mulan_original">
<div class="hair">
<div class="fringe"></div>
<div class="fringe_extension"></div>
<div class="fringe_back"></div>
<div class="fringe_aux"></div>
</div>
<div class="ear"></div>
<div class="face">
<div class="face_bottom"></div>
<div class="face_up"></div>
</div>
<div class="eyebrow"></div>
<div class="eye">
<div class="eye_shadow"></div>
<div class="eye_make"></div>
<div class="eye_base">
<div class="inside"></div>
</div>
</div>
<!-- Body -->
<div class="neck"></div>
<div class="pants"></div>
<div class="waist"></div>
<div class="hand2"></div>
<div class="hand"></div>
<div class="sleeve"></div>
<div class="shoulder"></div>
<div class="body"></div>
<div class="clothes"></div>
</div>
</div>
</div>
<div class="footer">
<div class="title">
Made with ♥ by Laura Grassi
</div>
<div class="sub">
<a href="https://www.instagram.com/kibum.png/" target=”_blank”>instagram: kibum.png</a>
<span>|</span>
<a href="https://twitter.com/kibumLaura" target=”_blank”> twitter: kibumLaura</a>
</div>
</div>
@import url('https://fonts.googleapis.com/css?family=Amatic+SC');
//*~ Variables Color
$sword: #d1dfea;
$sword_shadow: #5684b2;
$sword_base: #fcb81e;
$sword_base_shadow: #d29919;
$background: #222;
$background_dark: #a23333;
$background_soft: #f1c3e1;
$clothes_soldier: #206049;
$clothes_original: #8ebf64;
$waist: #a83a47;
$blue: #0a2b45;
$skin: #ebcaab;
$skin_shadow: #caa786;
$hair_shadow: #92833c;
//*~ Mixins
@mixin face_bottom ($top, $transform, $shadow) {
position: absolute;
background-color: $skin;
width: 5.2rem;
height: 6rem;
border-radius: 100% 0% 100% 0% / 0% 0% 100% 100%;
left: 0.9rem;
top: $top;
transform: $transform;
box-shadow: $shadow;
}
@mixin face_up ($left, $width) {
position: absolute;
background-color: $skin;
height: 8.2rem;
border-radius: 72% 100% 100% 0% / 30% 100% 0% 100%;
top: -10rem;
transform: rotate(8deg);
left: $left;
width: $width;
}
@mixin eyebrow ($left) {
width: 4.3rem;
height: 4rem;
display: inline-block;
position: absolute;
margin: 5px;
border-top-right-radius: 13%;
background: radial-gradient(farthest-side at top left, transparent 98%, transparent 100%) 100% 67%/79px 34% no-repeat, radial-gradient(108% 64% at bottom right, #ebcaab 123%, transparent 100%), radial-gradient(104% 100% at bottom right, #000 99%, transparent 100%);
top: -6rem;
left: $left;
&:after {
content: '';
width: 68px;
height: 35px;
border: solid 0.5rem transparent;
border-color: $skin transparent transparent transparent;
border-radius: 92%/100% 149% 0 0;
transform: rotate(6.1deg);
top: 0.15rem;
z-index: 999;
left: 0.3rem;
position: absolute;
}
}
@mixin make {
position: absolute;
width: 3rem;
height: 4rem;
background-color: black;
border-radius: 100% 0% 100% 0% / 100% 22% 78% 0%;
left: 2.4rem;
transform: rotate(25deg);
top: -3.7rem;
}
@mixin eye_base {
position: absolute;
width: 3rem;
height: 3.2rem;
background-color: #fdffff;
border-radius: 71% 29% 100% 0% / 100% 32% 68% 0%;
-webkit-border-radius: 71% 29% 100% 0% / 100% 32% 68% 0%;
left: 2.1rem;
-webkit-transform: rotate(25deg);
transform: rotate(25deg);
top: -3.1rem;
-webkit-box-shadow: inset -5px 7px black;
box-shadow: inset -5px 7px black;
border: 1px solid black;
overflow: hidden;
.inside {
width: 2.3rem;
height: 2.3rem;
background-color: black;
top: 0.7rem;
position: absolute;
border-radius: 2rem;
&:after {
content: '';
width: 0.6rem;
height: 0.6rem;
background-color: #fff;
position: absolute;
top: 1rem;
border-radius: 1rem;
left: 0.4rem;
}
}
}
//*~ Background
.footer {
bottom: 0;
color: white;
top: 35rem;
font-size: 2rem;
.title {
font-family: 'Amatic SC';
}
.sub {
display: flex;
justify-content: space-around;
font-size: 1rem;
font-family: 'Amatic SC';
a {
color: $background_soft;
text-decoration: none;
&:hover {
color: white;
}
}
}
}
body {
width: 99%;
height: 36rem;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: $background;
}
.container {
display: flex;
justify-content: center;
align-items: center;
margin: auto;
top: 0;
bottom: 0;
width: 32rem;
background-color: #0f2112;
border-radius: 32rem;
overflow: hidden;
transform: scale(0.7);
height: 32rem;
border: 5px solid white;
}
.background {
position: absolute;
.soft_side {
height: 32rem;
width: 19rem;
left: -18rem;
position: absolute;
top: -16rem;
background-color: $background_soft;
.cherry {
position: relative;
top: -50px;
width: 100%;
text-align: right;
i {
display: inline-block;
width: 200px;
height: 150px;
background: linear-gradient(to bottom right, #309900, #005600);
transform: skew(20deg);
border-radius: 5% 40% 70%;
box-shadow: inset 0px 0px 1px #222;
border: 1px solid #333;
z-index: 1;
-webkit-animation: falling 5s 0s infinite;
&:before {
position: absolute;
content: '';
top: 117px;
right: 9px;
height: 27px;
width: 32px;
transform: rotate(49deg);
border-radius: 0% 15% 15% 0%;
border-top: 1px solid #222;
border-bottom: 1px solid #222;
border-left: 0px solid #222;
border-right: 1px solid #222;
background: linear-gradient(to right, rgb(226, 152, 210), #e3aceb);
z-index: 1;
}
&:after {
content: '';
height: 125px;
width: 10px;
background: linear-gradient(to right, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0));
display: block;
transform: rotate(125deg);
position: absolute;
left: 85px;
border-radius: 50%;
}
&:nth-of-type(n) {
height: 23px;
width: 30px;
-webkit-animation-delay: 1.9s;
-webkit-animation-timing-function: ease-in-out;
background: linear-gradient(to bottom right, #d592db, #e727ce);
opacity: .7;
transform: rotate(180deg);
&:before {
width: 7px;
height: 5px;
top: 17px;
right: 1px;
}
&:after {
width: 2px;
height: 17px;
left: 12px;
top: 0px;
}
}
&:nth-of-type(2n+1) {
height: 11px;
width: 16px;
:before {
width: 4px;
height: 3px;
top: 7px;
right: 0px;
}
:after {
width: 2px;
height: 6px;
left: 5px;
top: 1px;
}
}
&:nth-of-type(3n+2) {
height: 17px;
width: 23px;
opacity: .3;
&:before {
height: 4px;
width: 4px;
top: 12px;
right: 1px;
}
&:after {
height: 10px;
width: 2px;
top: 1px;
left: 8px;
}
}
&:nth-of-type(2n) {
-webkit-animation-delay: 3.9s;
-webkit-animation: falling2 5s 0s infinite;
}
&:nth-of-type(3n) {
-webkit-animation-delay: 2.3s;
-webkit-animation: falling3 5s 0s infinite;
}
&:nth-of-type(4n) {
-webkit-animation-delay: 4.4s;
}
&:nth-of-type(5n) {
-webkit-animation-delay: 5s;
}
&:nth-of-type(6n) {
-webkit-animation-delay: 3.5s;
}
&:nth-of-type(7n) {
-webkit-animation-delay: 2.8s;
}
&:nth-of-type(8n) {
-webkit-animation-delay: 1.5s;
}
&:nth-of-type(9n) {
-webkit-animation-delay: 3.3s;
}
&:nth-of-type(10n) {
-webkit-animation-delay: 2.5s;
}
&:nth-of-type(11n) {
-webkit-animation-delay: 1.2s;
}
&:nth-of-type(12n) {
-webkit-animation-delay: 4.1s;
}
&:nth-of-type(13n) {
-webkit-animation-delay: 1s;
}
&:nth-of-type(14n) {
-webkit-animation-delay: 4.7s;
}
&:nth-of-type(15n) {
-webkit-animation-delay: 3s;
}
&:nth-of-type(2n+2) {
background: linear-gradient(to bottom right, #e4acd6, #bb88b4);
}
&:nth-of-type(4n+1) {
background: linear-gradient(to bottom right, rgb(218, 28, 177), #ee82dc);
}
&:nth-of-type(3n+1) {
opacity: .5;
}
}
}
}
.dark_side {
height: 32rem;
width: 19rem;
left: 0rem;
position: absolute;
top: -16rem;
background-color: $background_dark;
.sparks {
position: relative;
top: 31rem;
width: 100%;
text-align: right;
transform: rotate(180deg);
i {
display: inline-block;
width: 200px;
height: 150px;
background: linear-gradient(to bottom right, #292b28, #464646);
transform: skew(20deg);
border-radius: 5% 40% 70%;
box-shadow: inset 0px 0px 1px #222;
border: 1px solid #333;
z-index: 1;
-webkit-animation: falling 5s 5s infinite;
&:before {
position: absolute;
content: '';
top: 117px;
right: 9px;
height: 10px;
width: 32px;
transform: rotate(49deg);
border-radius: 0% 15% 15% 0%;
border-top: 1px solid #222;
border-bottom: 1px solid #222;
border-left: 0px solid #222;
border-right: 1px solid #222;
background: linear-gradient(to right, rgb(70, 70, 70), #444444);
z-index: 1;
}
&:after {
content: '';
height: 125px;
width: 10px;
background: linear-gradient(to right, rgba(0, 0, 0, .15), rgba(0, 0, 0, 0));
display: block;
transform: rotate(125deg);
position: absolute;
left: 85px;
border-radius: 50%;
}
&:nth-of-type(n) {
-webkit-animation-delay: 1.9s;
-webkit-animation-timing-function: ease-in-out;
transform: rotate(180deg);
height: 10px;
width: 20px;
opacity: .7;
&:before {
width: 7px;
height: 5px;
top: 17px;
right: 1px;
}
&:after {
width: 2px;
height: 6px;
left: 12px;
top: 0px;
}
}
&:nth-of-type(2n+1) {
height: 11px;
width: 16px;
&:before {
width: 4px;
height: 3px;
top: 7px;
right: 0px;
}
&:after {
width: 2px;
height: 6px;
left: 5px;
top: 1px;
}
}
&:nth-of-type(3n+2) {
height: 17px;
width: 23px;
&:before {
height: 4px;
width: 4px;
top: 12px;
right: 1px;
}
&:after {
height: 10px;
width: 2px;
top: 1px;
left: 8px;
}
}
&:nth-of-type(2n) {
-webkit-animation: falling2 8s 0s infinite;
-webkit-animation-delay: 3.9s;
}
&:nth-of-type(3n) {
-webkit-animation-delay: 2.3s;
-webkit-animation: falling3 5s 0s infinite;
}
&:nth-of-type(4n) {
-webkit-animation-delay: 4.4s;
}
&:nth-of-type(5n) {
-webkit-animation-delay: 5s;
}
&:nth-of-type(6n) {
-webkit-animation-delay: 3.5s;
}
&:nth-of-type(7n) {
-webkit-animation-delay: 2.8s;
}
&:nth-of-type(8n) {
-webkit-animation-delay: 1.5s;
}
&:nth-of-type(9n) {
-webkit-animation-delay: 3.3s;
}
&:nth-of-type(10n) {
-webkit-animation-delay: 2.5s;
}
&:nth-of-type(11n) {
-webkit-animation-delay: 1.2s;
}
&:nth-of-type(12n) {
-webkit-animation-delay: 4.1s;
}
&:nth-of-type(13n) {
-webkit-animation-delay: 1s;
}
&:nth-of-type(14n) {
-webkit-animation-delay: 4.7s;
}
&:nth-of-type(15n) {
-webkit-animation-delay: 3s;
}
&:nth-of-type(2n+2) {
background: linear-gradient(to bottom right, #312d2d, #131313);
}
&:nth-of-type(4n+1) {
background: linear-gradient(to bottom right, rgb(95, 95, 95), #2e2e2e);
}
&:nth-of-type(3n+2) {
opacity: .3;
}
}
}
}
}
//*~ Animation
@-webkit-keyframes falling {
0% {
-webkit-transform:
translate3d(300, 0, 0) rotate(0deg);
}
100% {
-webkit-transform:
translate3d(-350px, 700px, 0) rotate(90deg);
opacity: 0;
}
}
@-webkit-keyframes falling3 {
0% {
-webkit-transform:
translate3d(0, 0, 0) rotate(-20deg);
}
100% {
-webkit-transform:
translate3d(-230px, 640px, 0) rotate(-70deg);
opacity: 0;
}
}
@-webkit-keyframes falling2 {
0% {
-webkit-transform:
translate3d(0, 0, 0) rotate(90deg);
}
100% {
-webkit-transform:
translate3d(-400px, 680px, 0) rotate(0deg);
opacity: 0;
}
}
//*~ Mulan Sword
.mulan {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
}
.sword {
z-index: 20;
&_left {
background-color: $sword_shadow;
position: absolute;
height: 22.7rem;
width: 1.2rem;
left: 0;
top: -15.6rem;
box-shadow: -1rem 0rem $sword;
&:after {
content: '';
width: 3rem;
height: 2rem;
background-color: $background_dark;
position: absolute;
transform: rotate(54deg);
top: -0.5rem;
}
&:before {
content: '';
width: 3rem;
height: 2rem;
background-color: $background_soft;
position: absolute;
transform: rotate(-54deg);
top: -0.5rem;
left: -2.7rem;
}
}
&_base_circle {
position: absolute;
width: 2.2rem;
height: 0;
border-left: 1rem solid transparent;
border-right: 1rem solid transparent;
border-bottom: 1.8rem solid $sword_base;
left: -2rem;
top: 6rem;
}
&_base_triangle {
position: absolute;
width: 1.5rem;
height: 0;
border-left: 2rem solid transparent;
border-right: 2rem solid transparent;
border-bottom: 1.8rem solid $sword_base;
left: -2.6rem;
top: 7.1rem;
transform: rotate(180deg);
filter: drop-shadow(-5px 0px 0px $sword_base_shadow);
}
&_base_cabe {
position: absolute;
width: 1.5rem;
height: 0;
border-bottom: 1.8rem solid $sword_base;
left: -0.6rem;
top: 8.9rem;
transform: rotate(180deg);
filter: drop-shadow(-5px 0px 0px $sword_base_shadow);
}
}
//*~ Mulan Soldier
.mulan_soldier {
.face {
z-index: 5;
&_bottom {
@include face_bottom(-1.9rem, rotate(5deg), inset -2px -7px $skin_shadow);
}
&_up {
@include face_up(-0.3rem, 7.2rem);
box-shadow: inset -1px 20px black;
}
}
.hair {
.hair_side {
position: absolute;
top: -10.7rem;
width: 10.3rem;
height: 12.8rem;
background-color: #000000;
border-radius: 5rem 5rem 6rem 0;
left: -3.1rem;
box-shadow: inset -2px 0px $hair_shadow;
&:after {
content: '';
width: 8rem;
height: 7rem;
background-color: black;
position: absolute;
left: 1.1rem;
box-shadow: inset 1px 1px $hair_shadow;
top: 0rem;
border-radius: 11rem;
}
}
.hair_top {
width: 3rem;
height: 3rem;
position: absolute;
background-color: black;
top: -13.3rem;
border-radius: 2rem 3rem;
box-shadow: inset -1px 1px $hair_shadow;
}
}
.ear {
width: 2rem;
height: 3.6rem;
position: absolute;
background-color: $skin_shadow;
border-radius: 3rem 1rem 2rem 2rem;
transform: rotate(207deg);
top: -3rem;
left: 6.2rem;
box-shadow: inset 2px -1px #ebcaab;
}
.eye {
&_base {
@include eye_base;
}
&_shadow {
position: absolute;
width: 3rem;
height: 3.7rem;
background-color: black;
border-radius: 100% 0% 100% 0% / 100% 22% 78% 0%;
left: 2rem;
transform: rotate(25deg);
top: -3.7rem;
}
&_make {
@include make;
}
}
.eyebrow {
@include eyebrow(1rem);
&:before {
content: '';
width: 1.3rem;
height: 1rem;
background-color: $skin;
position: absolute;
left: 3rem;
top: -0.4rem;
}
}
}
//*~ Mulan Soldier Body
.mulan_soldier {
.neck {
width: 2rem;
height: 2rem;
background-color: $skin_shadow;
position: absolute;
top: 3.6rem;
left: -0.4rem;
z-index: 15;
}
.collar_before {
width: 2rem;
height: 2rem;
background-color: #1a4434;
transform: rotate(45deg);
position: absolute;
top: 3.8rem;
left: 0rem;
border-radius: 2rem 0rem 0 0;
}
.collar_aux {
width: 2rem;
height: 2rem;
background-color: #1a4434;
transform: rotate(-3deg);
position: absolute;
top: 5.1rem;
left: 1.2rem;
border-radius: 67% 33% 100% 0% / 86% 0% 100% 14%;
}
.collar {
width: 2rem;
height: 2rem;
background-color: #20805d;
position: absolute;
border-radius: 98% 2% 100% 0% / 50% 0% 100% 50%;
top: 4.8rem;
left: 0.5rem;
box-shadow: inset -6px 4px #1a4434;
z-index: 17;
}
.shoulder {
width: 5rem;
height: 2rem;
position: absolute;
background-color: #1c5540;
top: 5.5rem;
left: 1rem;
border-radius: 1rem 0.5rem;
box-shadow: inset -3px -3px black;
}
.body {
width: 3.9rem;
height: 5rem;
background-color: $clothes_soldier;
position: absolute;
top: 7rem;
border-radius: 1rem 2rem 2rem 0;
box-shadow: 3px -1px black;
&:after {
content: '';
width: 2rem;
height: 2rem;
background-color: $clothes_soldier;
position: absolute;
top: 1.5rem;
z-index: 8;
}
}
.arm {
width: 2.5rem;
height: 5.8rem;
position: absolute;
background-color: $clothes_soldier;
left: 3.6rem;
top: 7rem;
transform: rotate(-14deg);
border-radius: 1rem 1rem 2rem 1rem;
box-shadow: 3px 1px black;
}
.fist {
z-index: 5;
border-bottom: 2.8rem solid $clothes_soldier;
border-left: 0.8rem solid transparent;
border-right: 0.2rem solid transparent;
width: 1.5rem;
position: absolute;
transform: rotate(-111deg);
top: 10.8rem;
left: 1.8rem;
filter: drop-shadow(2px 5px 0px black);
}
.aux {
z-index: 99;
border-bottom: 2.1rem solid #000000;
border-left: 0.5rem solid transparent;
border-right: 0.4rem solid transparent;
width: 1.6rem;
position: absolute;
transform: rotate(-108deg);
top: 11rem;
left: 1.7rem;
overflow: hidden;
}
.hand {
width: 2.5rem;
height: 2.3rem;
border-radius: 61% 1% 85% 15% / 46% 100% 0% 54%;
background-color: $clothes_soldier;
position: absolute;
z-index: 5;
top: 11.2rem;
transform: rotate(-95deg);
left: -0.2rem;
box-shadow: 0px -3px black;
}
.hand2 {
width: 2.3rem;
height: 2.3rem;
border-radius: 61% 39% 85% 15% / 46% 100% 0% 54%;
background-color: #ebcaab;
position: absolute;
z-index: 5;
top: 11.2rem;
transform: rotate(-75deg);
left: -0.8rem;
box-shadow: 0px -3px black;
}
}
//*~ Mulan original
.mulan_original {
.hair {
.fringe {
width: 8.6rem;
height: 6.3rem;
background-color: black;
position: absolute;
left: -7.8rem;
top: -10.5rem;
border-radius: 62% 38% 100% 0% / 100% 0% 100% 0%;
transform: rotate(-4deg);
box-shadow: 0px -3px #f9ffff;
z-index: 9;
}
.fringe_extension {
width: 6rem;
height: 9.1rem;
top: -10.6rem;
left: -19.1rem;
border-radius: 100% 0% 100% 0% / 100% 48% 52% 0%;
box-shadow: -5px 34px 0 0 black;
transform: skew(-58deg, 54deg) rotate(-128deg) scale(-1, 1);
position: absolute;
filter: drop-shadow(1px -2px 0px #f9ffff);
z-index: 10;
}
.fringe_back {
width: 10.8rem;
height: 9.8rem;
background-color: black;
border-radius: 98% 2% 100% 0% / 0% 0% 100% 100%;
position: absolute;
left: -12.5rem;
transform: rotate(58deg);
top: -1.4rem;
box-shadow: 1px 4px #225a92;
}
.fringe_aux {
width: 8rem;
height: 4rem;
content: '';
background-color: #000000;
position: absolute;
border-radius: 98% 2% 100% 0% / 87% 0% 100% 13%;
top: -6.8rem;
left: -8.2rem;
z-index: 15;
transform: rotate(-15deg);
box-shadow: 11px 0px $skin_shadow;
}
}
.face {
transform: scale(-1, 1);
&_bottom {
@include face_bottom(-2.6rem, rotate(-20deg) skew(-24deg, 14deg), inset 1px -4px $skin_shadow);
}
&_up {
z-index: 3;
@include face_up(-0.3rem, 7rem);
}
}
.eye {
position: absolute;
left: 0.4rem;
transform: scale(-1, 1);
&_base {
@include eye_base;
}
&_shadow {
position: absolute;
width: 3rem;
height: 3.7rem;
background-color: black;
border-radius: 100% 0% 100% 0% / 100% 22% 78% 0%;
left: 2rem;
transform: rotate(25deg);
top: -3.7rem;
}
&_make {
@include make;
}
}
.eyebrow {
@include eyebrow(-6rem);
transform: scale(-1, 1);
&:before {
content: '';
width: 2.3rem;
height: 3rem;
background-color: $skin;
position: absolute;
left: 0rem;
top: 3rem;
}
}
.ear {
width: 2rem;
position: absolute;
height: 3rem;
background-color: $skin_shadow;
left: -7.5rem;
border-radius: 98% 2% 51% 49% / 75% 0% 100% 25%;
transform: rotate(-51deg);
top: -2.7rem;
}
//*~ Body
.neck {
width: 2rem;
height: 2rem;
background-color: #ebcaab;
position: absolute;
top: 3.6rem;
left: -1.25rem;
z-index: 15;
&:after {
content: '';
width: 2rem;
height: 3rem;
background-color: #ebcaab;
position: absolute;
border-radius: 98% 2% 0% 100% / 0% 100% 0% 100%;
top: 1.3rem;
left: -0.1rem;
transform: rotate(-19deg);
}
}
.clothes {
width: 3.5rem;
height: 4.6rem;
background-color: $clothes_original;
position: absolute;
left: -2.3rem;
top: 5.05rem;
border-radius: 98% 2% 33% 67% / 0% 100% 0% 100%;
transform: rotate(-13deg);
box-shadow: -3px -1px black;
}
.body {
width: 4rem;
height: 4.4rem;
background-color: $clothes_original;
position: absolute;
left: -3.6rem;
top: 7.2rem;
border-radius: 2rem 0 0rem 0rem;
box-shadow: -5px 2px black;
&:after {
content: '';
width: 3rem;
height: 2rem;
background-color: $blue;
position: absolute;
top: 2.8rem;
}
}
.shoulder {
width: 3rem;
height: 5rem;
background-color: $clothes_original;
position: absolute;
border-radius: 2rem 0rem 0 0;
left: -5.5rem;
top: 5.5rem;
transform: rotate(17deg);
box-shadow: -2px -1px black;
}
.sleeve {
width: 3.2rem;
height: 3rem;
position: absolute;
background-color: $clothes_original;
border-radius: 98% 2% 67% 33% / 28% 100% 0% 72%;
left: -6.7rem;
top: 9.5rem;
transform: scale(1, -1) rotate(-3deg);
box-shadow: -4px 1px black;
z-index: 5;
&:after {
transform: skew(-12deg, -17deg);
content: '';
width: 2.4rem;
height: 3rem;
background-color: #367e59;
position: absolute;
border-radius: 2rem;
left: 1.7rem;
}
}
.hand {
z-index: 8;
border-bottom: 2.8rem solid #ebcaab;
border-left: 0.5rem solid transparent;
border-right: 0.1rem solid transparent;
width: 1.4rem;
position: absolute;
transform: rotate(-111deg) scale(-1);
top: 9.2rem;
left: -3.6rem;
filter: drop-shadow(2px -1px 0px black);
}
.hand2 {
width: 2.6rem;
height: 2.4rem;
background-color: #ebcaab;
position: absolute;
border-radius: 76% 24% 67% 33% / 28% 65% 35% 72%;
top: 8.9rem;
left: -1.5rem;
z-index: 80;
box-shadow: 3px 1px black;
}
.waist {
width: 3.6rem;
height: 1.2rem;
position: absolute;
background-color: $waist;
top: 12.1rem;
left: -2.6rem;
border-radius: 100% 0% 100% 0% / 0% 40% 60% 100%;
transform: rotate(10deg);
}
.pants {
border-bottom: 70px solid #000000;
border-left: 31px solid transparent;
border-right: 30.5px solid transparent;
height: 0;
width: 5rem;
position: absolute;
top: 12rem;
left: -4.2rem;
filter: drop-shadow(3px 4px 0px $hair_shadow);
}
}
//*~ Not working good in safari browser
//*~ github: lauragrassig
//*~ twitter: @kibumLaura
//*~ insta: @kibum.png
Also see: Tab Triggers