[9.2.23] burger animé

This commit is contained in:
Fred Tempez 2020-03-06 21:18:34 +01:00
parent 1dc451604b
commit e5ab71be0a
2 changed files with 16 additions and 0 deletions

View File

@ -437,4 +437,17 @@ $(document).ready(function(){
} }
}); });
}); });
/**
* Icône du Menu Burger
*/
$("#toggle").click(function() {
var changeIcon = $('#toggle').children("span");
if ( $(changeIcon).hasClass('zwiico-menu') ) {
$(changeIcon).removeClass('zwiico-menu').addClass('zwiico-cancel');
}
else {
$(changeIcon).addClass('zwiico-menu');
};
});
}); });

View File

@ -517,6 +517,9 @@ nav a:hover {
nav .zwiico-menu { nav .zwiico-menu {
font-size:1.5em; font-size:1.5em;
} }
nav .zwiico-cancel {
font-size:1.5em;
}
} }