html, body {
  margin: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

.container {
  width: 500px;
  height: 250px;
  margin: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}

.container .mouth-wraper {
  width: 5em;
  height: 5em;
  position: relative;
  z-index: 2;
}

.container .mouth-wraper .top {
  width: 5em;
  height: 2.5em;
  border-radius: 10em 10em 0 0;
  background-color: orange;
  transform-origin: 50% 100%;
  transform: rotate(-45deg);
  animation: mouthmove .5s linear .7s infinite alternate;
}

.container .mouth-wraper .bottom {
  width: 5em;
  height: 2.5em;
  border-radius: 0 0 10em 10em;
  background-color: orange;
  transform-origin: 50% 0%;
  transform: rotate(45deg);
  animation: mouthmove .5s linear .7s infinite alternate;
}

.container .dot {
  width: 20px;
  height: 20px;
  background-color: yellowgreen;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 5em;
  z-index: 1;
  transform: translate(0, -50%);
}

.container .dot:nth-child(2) {
  animation: dotmove  1.2s 0s linear infinite;
}

.container .dot:nth-child(3) {
  animation: dotmove  1.2s .4s linear infinite;
}

.container .dot:nth-child(4) {
  animation: dotmove  1.2s .8s linear infinite;
}

@keyframes mouthmove {
  100% {
    transform: rotate(0);
  }
}

@keyframes dotmove {
  0% {
    transform: translate(0, -50%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-150px, -50%);
  }
}
