javascript - jQuery Rotate Image Not On Center -
i'm having bit of issue trying rotate image on particular point.
i've been using http://jsfiddle.net/ykj5d/ example; works when wanting rotate image center point.
however, using example above, wanted rotate image around letter g, how achieved?
current code:
function rotategearstick() { var rotation = function (){ $("#gear-stick").rotate({ angle:0, animateto:110, }); } rotation(); }
where gear-stick id of image.
i'm attempting create rev counter dial.
http://jsfiddle.net/ykj5d/1988/
#image{ margin:100px; padding-left:170px; /* <----- */ }
Comments
Post a Comment