<button class="hum">
  <span class="hum_line"></span>
</button>
button{
  padding: 0;
  background: none;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-border-radius: 0;
  border-radius: 0;
  border: none;
  &:focus{
    outline: 0;
  }
}

.hum{
  display: block;
  width: 40px;
  height: 26px;
  margin: 80px auto 0;
  cursor: pointer;
  &_line{
    position: relative;
    top: 0;
    left: 0;
    display: block;
    width: 40px;
    height: 2px;
    background: rgba(53,126,207,1);
    transition: all .3s;
    transform: rotate(0);
    &:before{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: rgba(53,126,207,1);
      transition: all .3s;
      transform: translateY(-12px);
    }
    &:after{
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 40px;
      height: 2px;
      background: rgba(53,126,207,1);
      transition: all .3s;
      transform: translateY(12px);
    }
  }
  &.is-active{
    .hum_line{
      background-color:rgba(53,126,207,0);
      &:before{
        transform: rotate(-45deg) translateY(0);
      }
      &:after{
        transform: rotate(45deg) translateY(0);
      }
    }
  }
}
View Compiled
function toggleMenu() {
  $('.hum').on('click', function(){
    $(this).toggleClass('is-active');
  });
};

toggleMenu();

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js