michaeldank
9/11/2017 - 12:50 AM

The following will add/remove a class onto #navToggle so you can add an active class/change icons to an opened mobile menu - see example htt

The following will add/remove a class onto #navToggle so you can add an active class/change icons to an opened mobile menu - see example http://www.sanpedrocoffee.com.au/

<script type="text/javascript">
$(function() {                       
$('#navToggle').click(function() {
    $(this).toggleClass("clicked");
});    
});              
</script>
#navToggle.clicked{
background:rgba(0,0,0,.5);
}

#navToggle.clicked:before {
  content:  "\f078";
}