This is going to be a little complicated because you are using CSS3 transforms and there is not really any Zepto API exposed for retrieving this information.
First you have to understand where the information is stored. Assuming you're on Android, iPhone, Safari, or Chrome, this is the webkitTransform
property.
If you access $('#circle').css('webkitTransform')
, you will see translateX(somevalue) translateY(somevalue)
where the values are what you passed through in the JavaScript.
Unfortunately, this is the final value and not the intermediate value. For the intermediate value, you will need something like this:
getComputedStyle($('#circle')[0]).webkitTransform
// == "matrix(1, 0, 0, 1, 87.66703796386719, 82.89203643798828)"
These values are stored in a transformation matrix. It can be either a matrix
or a matrix3d
based on what was passed. See my answer to another SO question on how to extract X and Y values from this string.
Obviously, this is a lot of work and you will need to add more logic for mobile Firefox and such. You may want to consider what it is you're attempting and see if there is an alternative approach.