Answer the question
In order to leave comments, you need to log in
How to set menu animation in jquery?
$('.icon-burger').click(function(){
$('.icon-burger').toggleClass('burger-active');
$('.header-container').toggleClass('header-container-active');
$('.menu').toggleClass('menu-active');
});
Answer the question
In order to leave comments, you need to log in
$('.icon-burger').click(function(){
$('.icon-burger, .header-container, .menu').fadeToggle();
...
});
$('.icon-burger').click(function(){
$('.icon-burger, .header-container, .menu').toggleClass('active');
});
.icon-burger, .header-container, .menu {
opacity: 0%;
transition: 1s;
}
.active {
opacity: 100%;
transition: 1s;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question