Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
  <div class="creature">
    <div class="face">
      <div class="eye"></div>
      <div class="eye"></div>
      <div class="mouth"></div>
    </div>
  </div>
</body>
</html>
 
.creature {
  width: 100px;
  height: 100px;
  background: blue;
  border-radius: 50%;
  position: relative;
  -webkit-animation: wobble 5s ease-in-out infinite;
}
.face{
  /* background: white; */
  height: 30px;
  width: 50px;
  position: absolute;
  left: 50%;
  margin-left: -25px;
  top: 20%;
  
}
.eye {
  display: inline-block;
  width: 10px;
  height: 15px;
  margin: 0 5px 5px;
  /* background: rgba(0,0,0,.9); */
  background: black;
  border-radius: 10px;
  border-radius: 50%;
  -webkit-animation: blink 3s ease-in-out infinite;
}
@-webkit-keyframes blink {
  90% {
    -webkit-transform: none;
  }
  95% {
    -webkit-transform: rotateX(90deg);
  }
}
@-webkit-keyframes wobble {
  33% {
    -webkit-transform: rotate(5deg);
    /* -webkit-transform: translateY(100px); */
  }
  66% {
    -webkit-transform: rotate(-5deg);
  }
}
.mouth {
  margin-top: 5px;
  display: block;
  width: 100%;
  background: black;
  height: 5px;
  border-radius: 5x 5px 5px 5px;
  -webkit-animation: yawn 30s infinite;
}
@-webkit-keyframes yawn {
  10% {
    height: 5px;
    border-radius: 10px 10px 10px 10px;
  }
  20% { 
    height: 40px;
    border-radius: 30px 30px 50% 50%;
    -webkit-transform: scaleY(1.3);
  }
  
  25% {
    height: 5px;
    border-radius: 10px 10px 10px 10px;
  }
}
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
arjunvenkatpro
0viewers