treehouse : what would you like to learn today?
Web Design Web Development iOS Development

.animate() to the left dammit!


  • $("#about").click(function() {
    $("#about").animate({ width: "650px", height: "400px" }, 500, function() {
    $(".overlay").fadeIn(400);
    return false;
    });
    return false;
    });


    This is what I using atm. Works perfect but I want it to animate to the left and upwards not to the right and downwards?
    Is there any way to change this?

    Sort of like this:
    width: ["650px", "left"]


    Thank you!
  • Animate the margins as well. That's what I always do.