.voice {
  width: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  height: 100%;
  background-color: #efefef;

}

.voice .result {
  font-size: 16px;
  font-weight: bold;
  width: 100%;
}

.voice .typeIcon {
  width: 60px;
  height: 60px;
  display: inline-block;
  transform-origin: bottom center;
  animation: swing1 2s ease infinite alternate;
  background-size: cover;
  background-position: top center;
}

.voice .on {
  background: url('./images/on.png');
  background-size: cover;
  background-position: top center;
}

.voice .off {
  background: url('./images/off.png');
  background-size: cover;
  background-position: top center;
}

@keyframes swing1 {
  0% {
    transform: translatey(0px);
  }

  50% {
    transform: translatey(-10px);
  }

  100% {
    transform: translatey(0px);
  }
}