Hey guys,
I am in the process of designing my menu for my new website although I ran into a problem. I want to toggle class using css.animate. Here is the code.
$(“#menu”).click(function() {
$(“.menu”).toggleClass(“animated flipInX”);
});
This works perfect what I would like to achieve is using css.animate to toggle an animated flip out animation so the menu doesn’t just disappear on toggle, it flips out like it flipped in.
Example of what I want:
$(“#menu”).click(function() {
$(“.menu”).toggleClass(“animated flipInX”);
(“animated flipOutX”); // this class needs to be called on toggle out.
});
Please help me as this is the last chunk i need for my beautiful menu.