/hmrotate

Rotate objects using js

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

HMRotate

Rotate html objects using jquery

how to use:

//HTML

<div id="myDiv"></div>

//JAVASCRIPT

$("#myDiv").hmRotate();

//CSS

.hmrotate-api-rotate-symbol{
    background-image: url('http://www.draw4free.com/help/icons/rotate.png'); //add your custom image here
}

P.S: You can also call it with options.. e.g:

$("#myDiv").hmRotate({align:'left'}); //also can be right and center

$("myDiv").hmRotate({updatableposition:true}); //default false. This can be used when the object #myDiv also uses draggable jquery.

Sample Online:

http://jsfiddle.net/8FmRd/873/