I want to change the height of an element twice using one jquery animation but I can't. How to do it?
I am using the code:
$("#animate").click(function() {
$("#content")
.animate({"height": "200px"},{"queue": true, "duration": 500})
.animate({"width": "250px"}, {"queue": true, "duration": 500});
.animate({"height": "100px"},{"queue": true, "duration": 500})
});
And nothing is happenning.. But if I remove any one of the height animation it works fine. Thanks in advance..