$(".hamburger").click(function () {
    $('.slider').slideToggle();
});

$(".hamburger").click(function () {
    $('.slider').slideToggle();
}); //TODO: Write own CSS animation or use animate.css or alternative

Add TODO to fix animation.