jquery animate - dead simple

Posted by danit on Stack Overflow See other posts from Stack Overflow or by danit
Published on 2010-04-27T11:35:07Z Indexed on 2010/04/27 11:43 UTC
Read the original article Hit count: 161

Filed under:

All I want to do is on .click() is .animate #slip, essentially Im changing the css at the moment from top: 10px to top: 0px

Instead of it being quite clunky i'd like to animate the movement on the change of CSS.

Currently use .toggleClass to achieve this:

    $("#div1").click(function() {
        $("#div2t").toggleClass('min');
    });

© Stack Overflow or respective owner

Related posts about jQuery