body {
  width: 100%;
  height: 100vh;
  display: ;
  align-items: center;
  justify-content: center;
  background: ;
}

*, *:after, *:before {
  box-sizing: border-box;
}

.pig {
  width: 40vh;
  height: 30vh;
  position: relative;
}
.pig__head {
  width: 100%;
  height: 50%;
  border-radius: 50% 50% 0 0/100% 100% 0 0;
  background: #fff;
  margin: 0 auto;
  position: relative;
}
.pig__head:after, .pig__head:before {
  content: "";
  width: 45%;
  height: 60%;
  position: absolute;
  bottom: -60%;
  border-radius: 0 0 50% 50%/0 0 100% 100%;
  background: #fff;
}
.pig__head:after {
  left: 0;
}
.pig__head:before {
  right: 0;
}
.pig__nose {
  width: 10vh;
  height: 10vh;
  border-radius: 50%/100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  box-shadow: 0 0 5px #c3c3c3;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 5%;
  -webkit-animation: nose 2s linear infinite;
          animation: nose 2s linear infinite;
}
.pig__nose:after {
  content: "";
  width: 70%;
  height: 70%;
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%/100%;
  transform: translate3d(-50%, -50%, 0);
  background: #fae1d7;
}
.pig__nose-hole {
  width: 2.3076923077vh;
  height: 2.3076923077vh;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  border: 0.3333333333vh solid #fff5ef;
  background-color: #df795a;
}
.pig__eye {
  width: 7.5vh;
  height: 7.5vh;
  position: absolute;
  left: 50%;
  top: 10%;
  transform: translate3d(-50%, 0, 0);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pig__eye:after, .pig__eye:before {
  content: "";
  position: relative;
  display: block;
  width: 2.1428571429vh;
  height: 2.1428571429vh;
  border-radius: 50%;
  background: #4d2c21;
}
.pig__ear {
  width: 60%;
  height: 60%;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.pig__ear:after, .pig__ear:before {
  content: "";
  display: table;
  width: 40%;
  height: 45%;
  top: 5%;
  background: #fff;
  position: relative;
}
.pig__ear:after {
  border-radius: 0 100% 0 100%;
  right: -25%;
  transform: rotate(-9deg);
  box-shadow: 0.303030303vh 0.3333333333vh 0.3157894737vh #ee9d84;
  -webkit-animation: ear 3s linear infinite;
          animation: ear 3s linear infinite;
  -webkit-animation-delay: 3s;
          animation-delay: 3s;
}
.pig__ear:before {
  border-radius: 100% 0 100% 0;
  left: -25%;
  transform: rotate(9deg);
  box-shadow: -0.303030303vh 0.3333333333vh 0.3157894737vh #ee9d84;
}

@-webkit-keyframes nose {
  0%, 2% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
  3%, 5% {
    height: 8.5714285714vh;
    transform: translate3d(-50%, -55%, 0);
  }
  6%, 8% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
  9%, 11% {
    height: 8.5714285714vh;
    transform: translate3d(-50%, -55%, 0);
  }
  12%, 14% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
  15%, 100% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
}

@keyframes nose {
  0%, 2% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
  3%, 5% {
    height: 8.5714285714vh;
    transform: translate3d(-50%, -55%, 0);
  }
  6%, 8% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
  9%, 11% {
    height: 8.5714285714vh;
    transform: translate3d(-50%, -55%, 0);
  }
  12%, 14% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
  15%, 100% {
    height: 10vh;
    transform: translate3d(-50%, -50%, 0);
  }
}
@-webkit-keyframes ear {
  0%, 2% {
    transform: rotate(-9deg);
  }
  3%, 5% {
    transform: rotate(-11deg);
  }
  6%, 8% {
    transform: rotate(-9deg);
  }
  9%, 11% {
    transform: rotate(-11deg);
  }
  12%, 14% {
    transform: rotate(-9deg);
  }
  15%, 100% {
    transform: rotate(-9deg);
  }
}
@keyframes ear {
  0%, 2% {
    transform: rotate(-9deg);
  }
  3%, 5% {
    transform: rotate(-11deg);
  }
  6%, 8% {
    transform: rotate(-9deg);
  }
  9%, 11% {
    transform: rotate(-11deg);
  }
  12%, 14% {
    transform: rotate(-9deg);
  }
  15%, 100% {
    transform: rotate(-9deg);
  }
}