<div>
<button><span></span><span></span><span></span><span></span><span></span></button>
</div>
div {
  width: 100px;
  height: 100px;
  background-color: tomato;
  display: flex;
  justify-content: center;
  align-items: center;
}

button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid black;
/*   box-shadow: 2px 2px 9px 1px rgba($basic-white, 0.3),
    -2px -2px 9px 1px rgba(white, 0.3); */
  background-color: transparent;
/*   display: flex; */
/*   justify-content: center; */
/*   align-items: center; */
  cursor: pointer;
  transition: box-shadow 0.4s ease;
  outline: none;
  padding: 0;
}

span {
  display: inline-block;
  width: 2px;
  height: 50%;
  background-color: white;
  border-radius: 3px;
  animation-name: mp3;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform-origin: center;
/*   transition: background-color 0.3s ease; */
}
  span:not(:last-child) {
    margin-right: 1px;
  }

  span:nth-child(2) {
    animation-delay: 0.2s;
  }

  span:nth-child(3) {
    animation-delay: 0.4s;
  }

  span:nth-child(4) {
    animation-delay: 0.6s;
  }

  span:nth-child(5) {
    animation-delay: 0.8s;
  }


@keyframes mp3 {
  0% {
    transform: scaleY(100%);
  }

  50% {
    transform: scaleY(10%)
  }

  100% {
    transform: scaleY(100%)
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.