Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Css Animate Issue

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #169123
    Scott
    Participant

    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.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.