<div class="mobnav">
<a href="#mmenu"><i class="fas fa-bars"></i></a>
<a href="#mmenu"><i class="fas fa-times"></i></a>
</div>
.mobnav i {
color: #fff;
}
.fas.fa-bars {
font-size: 24px;
color: #ffffff;
cursor: pointer;
padding: 15px;
}
.open .fas.fa-bars {
display: none !important;
}
.fas.fa-times {
display: none;
font-size: 26px;
color: #ffffff;
cursor: pointer;
padding: 15px;
}
.open .fas.fa-times {
display: inline-block !important;
}
$(".mobnav").click(function(event) {
$(this).toggleClass('open');
});