$("#hidePanel").click(function() {
$("#panel2").animate({ marginTop: "0px" }, 500);
$("#colleft2").animate({ height: "0px", opacity: 0 }, 400);
$("#panel3").animate({ marginTop: "0px" }, 500);
$("#colleft3").animate({ height: "0px", opacity: 0 }, 400);
$("#panel").animate({ marginTop: "0px" }, 500);
$("#colleft").animate({ height: "200px", opacity: 1 }, 400);
});
ive tried adding .delay like this:
$("#colleft").delay(200).animate({ height: "200px", opacity: 1 }, 400);
but this just stopped the box from expanding altogether.
Id be really thankful if someone could help?