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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

javascript - Clean way to programmatically use CSS transitions from JS? -

android - send complex objects as post php java -