<div class="menu-btn">
<div class="hamburger_wrapper">
<div class="hamburger hamburger--spin">
<div class="hamburger-box">
<div class="hamburger-inner"></div>
</div>
</div>
</div>
</div>
.hamburger_wrapper {
display: none;
}
.hamburger-inner,
.hamburger-inner:after,
.hamburger-inner:before {
background-color: #fff !important;
}
@media (max-width: 991px) {
.hamburger_wrapper {
display: block;
position: fixed;
top: 28px;
right: 46px;
z-index: 100;
mix-blend-mode: difference;
}
}
<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');
});