Animate position

Animate position

Hello,
i want to animate a div with fixed position.

If i do this: animate({ top: 0, left: 0})
and then: animate({ right: 0, bottom: 0})
the second animation doesn't works because there are still top and left... how to set that to "auto" with a correct animation?

Thanks.