• # July 16, 2013 at 2:31 pm

    So i wrote this jQuery code about a year ago maybe longer in jsfiddle

    and turns out its obsolete because when changing the source to ver. 2, the animation just hides the navigation and I’m having a tough time changing the code to today’s standards
    can somebody help?

    and would that be possible with css?

    # July 16, 2013 at 6:11 pm

    Using jQuery 2:

    # July 16, 2013 at 6:31 pm

    Using CSS3 animations (and jQuery to add a class):

    # July 17, 2013 at 10:30 pm

    This reply has been reported for inappropriate content.

    As I know, since JQuery 1.9, they no longer support .toggle() event. If you want to create toggle event, try this way:

    var collapsed = true; // Variable to save the state
    $('#title').on("click", function() {
    if (collapsed === true) {
    alert('First toggle state.');
    collapsed = false;
    } else {
    alert('Second toggle state.');
    collapsed = true;


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.