.burger-icon {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  cursor: pointer;
  transition: .5s ease-in-out;
  transform: rotate(0deg); }
  .burger-icon span {
    position: absolute;
    left: .2rem;
    height: .2rem;
    display: block;
    opacity: 1;
    transition: .25s ease-in-out;
    transform: rotate(0deg);
    transform-origin: center;
    border-radius: 1px;
    background: #fff; }
    .burger-icon span:nth-child(1) {
      top: .5rem;
      width: 2rem; }
    .burger-icon span:nth-child(2) {
      top: 1.1rem;
      width: 1rem; }
    .burger-icon span:nth-child(3) {
      top: 1.7rem;
      width: 1.6rem; }
  .burger-icon.active span:nth-child(1) {
    top: 1.1rem;
    width: 2rem;
    transform: rotate(45deg); }
  .burger-icon.active span:nth-child(2) {
    opacity: 0; }
  .burger-icon.active span:nth-child(3) {
    top: 1.1rem;
    width: 2rem;
    transform: rotate(-45deg); }
