I know that the value of the original css from the stylesheet can be assigned with: $ ('# id'). css ('property', ''); but is there a way to get the value without changing the property in the object? Note that this may differ from getting the current value , as it can be changed from the value of the stylesheet.
Possible "solutions" (untested)
var originalTopPos = $("#testPic").css("top");
....
$("#testPic").animate({"top": originalTopPos + "px"},"slow");
I use a lot of images, though ... so it's a little more complicated than that.
(I want to animate it from the current to the original value, and not just move from one value to another)
var currentTopPos = $("#testPic").css("top");
var originalTopPos = $("#testPic").css("top", "").css("top");
$("#testPic").css("top", currentTopPos + "px")
$("#testPic").animate({"top": originalTopPos + "px"},"slow");