.burger-icon {
  width: 30px;
  height: 20px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
}

.burger-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.burger-icon span:nth-child(1) {
  top: 0px;
}

.burger-icon span:nth-child(2) {
  top: 10px;
}

.burger-icon span:nth-child(3) {
  top: 20px;
}

.burger-icon.open span:nth-child(1) {
  top: 10px;
  transform: rotate(135deg);
}

.burger-icon.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.burger-icon.open span:nth-child(3) {
  top: 10px;
  transform: rotate(-135deg);
}