$(function () { $("button").click(function () { $(".box").animate({ "margin-left" : "200px", "opacity" : 0.5, "height" : "toggle", "width" : 50 }, 500); }); });