Moving Head (me)
by sh20raj
HTML
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-title" content="CodePen">
<title>CodePen - Moving Head (me)</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<style>
@import url("https://fonts.googleapis.com/css?family=Archivo+Black");
html, body {
height: 100%;
width: 100%;
background: #d43959;
overflow: hidden;
padding: 0;
margin: 0;
}
.container {
text-align: center;
position: absolute;
left: 0;
right: 0;
margin: auto;
top: 0;
bottom: 0;
width: 100%;
height: 200px;
}
.container div {
position: absolute;
}
.container .me {
left: 0;
position: absolute;
right: 0;
margin: auto;
width: 80px;
height: 160px;
}
.container .me .head {
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
width: 70px;
height: 90px;
background: #ffd3c1;
-moz-border-radius: 100px;
-webkit-border-radius: 100px;
border-radius: 100px;
top: 10px;
left: 5px;
}
.container .me .head .bangs {
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-webkit-transition: all 0.5s ease;
transition: all 0.5s ease;
height: 50px;
width: 94%;
background: #111427;
content: "";
position: absolute;
-moz-border-radius: 100px 100px 10px 10px;
-webkit-border-radius: 100px;
border-radius: 100px 100px 10px 10px;
top: -12px;
left: 3px;
}
.container .me .look-left.head {
width: 70px;
left: -10px;
}
.container .me .look-left.head .bangs {
width: 106%;
left: -7px;
}
.container .me .look-right.head {
width: 70px;
left: 15px;
}
.container .me .look-right.head .bangs {
width: 106%;
left: 5px;
}
.container .me .look-down.head {
height: 90px;
top: 20px;
width: 70px;
left: 5px;
-moz-transform-origin: bottom center 50%;
-ms-transform-origin: bottom center 50%;
...