.animate({}) doesnt work with zIndex?

.animate({}) doesnt work with zIndex?

Animate doesnt seem to work with zindex. I dont see anywhere this is mentioned on the animate() page.

$("#myelement").animate({zIndex: 10})
.animate({opacity: 1), 1000);

Opacity is affected but not zIndex. I can change zIndex the normal way though:


$("#myelement").css('zIndex', '10');