can we use opacity,height,width,left and top together with jquery animate function
$('#div').animate({
opacity : 1,
height : 300, // You desired height.
width : 400
});
$('#div').animate({
opacity : 1,
height : 0,
width : 0
});
if anyone has any idea then please share with me. thanks
Yes, you can animate those properties together. Your code, as written, works just fine except you probably don’t want to do the one immediately followed by the other.
Here’s a working example:
Side note: I would strongly discourage you from giving an element the
id“div”. That’s just asking for confusion.