nav .awesome{








}

nav ul{


}

nav ul li a{




}

nav ul li{







}

nav ul li:first-child{

}

@media screen and (min-width: 600px){

nav .awesome{

}

nav ul{

}

nav ul li{





}
}

<------Width of this window is 300px------>
<------------------------------------------------------Width of this window is 800px---------------------------------------------------->

  <nav>
      <div class='awesome'><i class="fas fa-bars"></i></div>
      <ul>
        <li><a href="#">Home</a></li>
        <li><a href="#">Products</a></li>
        <li><a href="#">Contact</a></li>
        <li><a href="#">About</a></li>
      </ul>
  </nav>

  $('.awesome').click(function(){
    if($(this).hasClass('open')){
      $(this).removeClass('open');
      $('nav ul').slideUp('slow');
    }else{
      $(this).addClass('open');
      $('nav ul').slideDown('slow');
    };
  });