$(document).ready(function () { $('span').click(function() { $('.overlay').toggleClass('anim'); }); $('.animation').click(function(){ $('.anim').toggleClass('reverse-animation'); }) });

Click the burger icon to see the menu !