SOURCE

console 命令行工具 X clear

                    
>
console
<div class="face">
  <div class="ears"></div>
  <div class="face__wrap">
    <div class="eyes"></div>
    <div class="nose">
      <svg xmlns="http://www.w3.org/2000/svg" width="29" height="12" viewBox="0 0 29 12" version="1"><g style="fill-rule:evenodd;fill:none;stroke-linecap:round"><g style="stroke-width:4;"><path d="M2.4 2.5C4.6 6.6 9.1 9.4 14.4 9.4L14.4 9.4C19.8 9.4 24.3 6.5 26.4 2.4"/></g></g></svg>
    </div>
    <div class="mouth">
      <svg xmlns="http://www.w3.org/2000/svg" width="44" height="8" viewBox="0 0 44 8" version="1"><g style="fill-rule:evenodd;fill:none;stroke-linecap:round"><g style="stroke-width:4;"><path d="M2.2 2.2C5.7 4 13.3 5.2 22.1 5.2L22.1 5.2C31 5.2 38.7 3.9 42.2 2.2"/></g></g></svg>
    </div>
  </div>
</div>
$color_primary: #000000;
$color_secundary: #FFCC5C;
$border: 0.375em solid $color_primary;

$animation_duration: 2s;
$animation-timing-function: ease-in-out;
$animation_iterationcount: infinite;


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

:before,
:after {
  content: '';
  display: block;
  position: absolute;
}

body {
  width: 100%;
  height: 100%;
  background-color: lighten($color_primary, 20%);
}

svg {
  width: 100%;
  height: 100%;
  stroke: $color_primary;
}

.face {
  font-size: 1rem;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10em;
  height: 11.25em;
  transform: translate3d(-50%, -50%, 0);
   
  &__wrap {
    width: 8.475em;
    height: 100%;
    position: relative;
    background-color: $color_secundary;
    border: $border;
    border-radius: 8em;
    animation: look_shadow $animation_duration $animation-timing-function $animation_iterationcount;
    margin: 0 auto;
    z-index: 1;
  }
}

.ears {
  width: 100%;
  height: 100%;
  position: absolute;
  animation: look_ears $animation_duration $animation-timing-function $animation_iterationcount reverse;
  
  &:before,
  &:after {
    width: 1.5em;
    height: 2.625em;
    top: 50%;
    transform: translateY(-50%);
    background-color: $color_secundary;
    border: $border;
    border-radius: 1.5em;
    animation: look_shadow $animation_duration $animation-timing-function $animation_iterationcount;
    z-index: 0;
  }
  
  &:before {
    left: 0;
  }
  
  &:after {
    right: 0;
  }
}

.eyes {
  animation: look $animation_duration $animation-timing-function $animation_iterationcount;
  height: 100%;
  
  
  &:before,
  &:after {
    width: 0.75em;
    top: 50%;
    transform: translateY(-50%);
    background-color: $color_primary;
    border-radius: 1.5em;
    animation: blink 7s $animation-timing-function $animation_iterationcount;
  }
  
  &:before {
    left: 24%;
  }
  
  &:after {
    right: 24%
  }
}

.nose {
  width: 1.55em;
  height: 0.75em;
  position: absolute;
  left: calc(50% - 0.75em);
  bottom: 3.375em;
  animation: look $animation_duration $animation-timing-function $animation_iterationcount;
  
  &:before {
    width: 0;
    height: 0;
    bottom: 0.275em;
    right: 0;
    border-top: 1em solid transparent;
    border-right: 0.5em solid transparent;
    border-left: 0.2em solid rgba($color_primary, 0.2);
    animation: look_shadow__nose $animation_duration $animation-timing-function $animation_iterationcount;
  }
}

.mouth {
  width: 2.75em;
  height: 0.5em;
  position: absolute;
  left: calc(50% - 1.375em);
  bottom: 2.4em;
  animation: look_mouth $animation_duration $animation-timing-function $animation_iterationcount;
}

@keyframes look {
  0% {
    transform: translateY(1em);
  } 50% {
    transform: translateY(-1.5em);
  } 100% {
    transform: translateY(1em);
  }
}

@keyframes look_mouth {
  0% {
    transform: translateY(0.75em);
  } 50% {
    transform: translateY(-1.4em);
  } 100% {
    transform: translateY(0.75em);
  }
}

@keyframes look_ears {
  0% {
    transform: translateY(-1em);
  } 50% {
    transform: translateY(0.75em);
  } 100% {
    transform: translateY(-1em);
  }
}

@keyframes look_shadow {
  0% {
    box-shadow: inset -0.5em 0.5em 0 rgba($color_primary, 0.2);
  } 50% {
    box-shadow: inset -0.5em -0.5em 0 rgba($color_primary, 0.2);
  } 100% {
    box-shadow: inset -0.5em 0.5em 0 rgba($color_primary, 0.2);
  }
}

@keyframes look_shadow__nose {
  0% {
    border-bottom: 1.75em solid rgba($color_primary, 0.2);
  } 50% {
    border-bottom: 1em solid rgba($color_primary, 0.2);
  } 100% {
    border-bottom: 1.75em solid rgba($color_primary, 0.2);
  }
}

@keyframes blink {
  0% {
    height: 1.125em;
  } 1% {
    height: 0.2em;
  } 2% {
    height: 1.125em;
  } 10% {
    height: 1.125em;
  } 11% {
    height: 0.2em;
  } 12% {
    height: 1.125em;
  } 100% {
    height: 1.125em;
  }
}