<html>
<head>
<meta charset="utf-8">
<link href="css/html5reset.css" rel="stylesheet">
<link href="css/owl.css" rel="stylesheet">
<title>Sleepy Owl</title>
</head>
<body>
<div class="owl">
<div class="eyepatch left">
<div class="goggle left">
<div class="eye">
<div class="glint"></div>
</div>
</div>
</div>
<div class="eyepatch right">
<div class="goggle right">
<div class="eye">
<div class="glint right"></div>
</div>
</div>
</div>
<div id="beak"></div>
<div class="owlbody">
<div class="rightwing"></div>
</div>
</div>
</body>
</html>
*, *:before, *:after {
box-sizing: border-box; box-sizing: border-box; box-sizing: border-box;
}
body {
margin: 0;
padding: 0;
background-color: #fff;
}
#beak {
position: absolute;
margin: 100px 0 0 95px;
z-index: 3;
width: 0;
height: 0;
border-left: 18px solid transparent;
border-right: 18px solid transparent;
border-top: 55px solid #F1BE16;
}
@-webkit-keyframes blink {
0% {
opacity: 1;
margin-top: 36px;
height: 0;
}
20% {
margin-top: 5px;
height: 53px;
}
80% {
margin-top: 5px;
height: 53px;
}
100% {
opacity: 1;
margin-top: 36px;
height: 0;
}
}
@-moz-keyframes blink {
0% {
opacity: 1;
margin-top: 15px;
height: 0;
}
5% {
opacity: 1;
margin-top: 15px;
height: 0px;
}
20% {
margin-top: 5px;
height: 35px;
}
80% {
margin-top: 5px;
height: 35px;
}
100% {
opacity: 1;
margin-top: 15px;
height: 0;
}
}
@-o-keyframes blink {
0% {
opacity: 1;
margin-top: 15px;
height: 0;
}
5% {
opacity: 1;
margin-top: 15px;
height: 0px;
}
20% {
margin-top: 5px;
height: 35px;
}
80% {
margin-top: 5px;
height: 35px;
}
100% {
opacity: 1;
margin-top: 15px;
height: 0;
}
}
*, *:before, *:after {
box-sizing: border-box; box-sizing: border-box; box-sizing: border-box;
}
.owl {
position: relative;
width: 200px;
margin: 20% auto;
padding: 0;
}
.rightwing:after {
content: "";
background: #fff;
width: 30px;
height: 170px;
position: absolute;
bottom: 0;
margin-left: 77px;
margin-bottom: 20px;
border-radius: 50%;
z-index: 2;
}
.rightwing:before {
content: "";
background-color: #655C53;
background-image: linear-gradient(-45deg,#CCBCA5, #655C53 60%);
width: 85px;
height: 130px;
position: absolute;
margin-top: 110px;
border-radius: 0 0 0 160px/0 0 0 200px;
transform: rotate(-3deg);
transform: rotate(-10deg);
transform: rotate(-10deg);
z-index: 1;
}
.rightwing {
width: 80px;
height: 200px;
float: right;
margin-top: 10px;
border-radius: 80px 80px 0 140px/140px 220px 0 210px;
background-color: #655C53;
}
.owlbody:after {
content: "";
background: #fff;
width: 30px;
height: 60px;
position: absolute;
bottom: 0;
margin-left: 150px;
z-index: 0;
border-radius: 50%;
}
.owlbody {
border-radius: 80px 80px 0 125px;
width: 160px;
height: 270px;
margin-top: 80px;
margin-left: 35px;
background-color: #CCBCA5;
background-image: linear-gradient(-45deg, #CCBCA5, #C7AF93 70%);
}
.goggle {
background: #E9E1D5;
width: 75px;
height: 70px;
display: inline-block;
border-radius: 45% 40% 40% 45%;
padding: 0 25px;
margin: 25px 0 0 20px;
position: absolute;
}
.goggle.right {
margin-left: -10px;
border-radius: 40% 45% 45% 40%;
}
.eye {
background: #221F1B;
width: 53px;
height: 53px;
border-radius: 50%;
margin: 10px -15px;
background-image: linear-gradient(#221F1B 80%, #37322E);
animation: blink 3s infinite linear normal none;
animation: blink 3s infinite linear normal none;
animation: blink 3s infinite linear normal none;
animation: blink 3s infinite linear normal none;
}
.right .eye {
margin-left: -10px;
}
.glint {
background: #E9E1D5;
position: absolute;
z-index: 3;
width: 18px;
height: 18px;
border-radius: 50%;
margin-top: 5px;
right:20px;
}
.glint.right {
left: 20px;
}
.eyepatch {
background: #3B3632;
display: inline-block;
position: absolute;
width: 80px;
height: 90px;
border-radius: 63px 63px 63px 63px / 108px 108px 72px 72px;
border-radius: 0 143px 63px 103px / 0 108px 50px 272px;
z-index: 4;
margin: 25px 0 0 20px;
}
.eyepatch.right {
margin-left: 120px;
border-radius: 143px 0 63px 103px / 108px 0 272px 52px;
}
Output
300px
You can jump to the latest bin by adding /latest
to your URL
Keyboard Shortcuts
Shortcut | Action |
---|---|
ctrl + [num] | Toggle nth panel |
ctrl + 0 | Close focused panel |
ctrl + enter | Re-render output. If console visible: run JS in console |
Ctrl + l | Clear the console |
ctrl + / | Toggle comment on selected lines |
ctrl + ] | Indents selected lines |
ctrl + [ | Unindents selected lines |
tab | Code complete & Emmet expand |
ctrl + shift + L | Beautify code in active panel |
ctrl + s | Save & lock current Bin from further changes |
ctrl + shift + s | Open the share options |
ctrl + y | Archive Bin |
Complete list of JS Bin shortcuts |
JS Bin URLs
URL | Action |
---|---|
/ | Show the full rendered output. This content will update in real time as it's updated from the /edit url. |
/edit | Edit the current bin |
/watch | Follow a Code Casting session |
/embed | Create an embeddable version of the bin |
/latest | Load the very latest bin (/latest goes in place of the revision) |
/[username]/last | View the last edited bin for this user |
/[username]/last/edit | Edit the last edited bin for this user |
/[username]/last/watch | Follow the Code Casting session for the latest bin for this user |
/quiet | Remove analytics and edit button from rendered output |
.js | Load only the JavaScript for a bin |
.css | Load only the CSS for a bin |
Except for username prefixed urls, the url may start with http://jsbin.com/abc and the url fragments can be added to the url to view it differently. |