I am trying to rotate an element (any element div,p..) with the handle (handle=>div) which I placed on the element’s top-left corner, now my problem is that the element does not fully rotate to 360 degree, can anyone please help out :
$("#elementid").live('mouseover', function () {
$(this).draggable({ handle: "#handleid", drag: function (event, ui) {
var rotateCSS = 'rotate(' + ui.position.left + 'deg)';
alert(ui.position.left);
$(this).parent().parent().css({
'-moz-transform': rotateCSS,
'-webkit-transform': rotateCSS
});
}
});
});
these are question in stackoverflow in the same category
how to rotating div
trying to rotate a div element with jQuery controlling css3 transform command
Rotating a Div Element in jQuery
How to rotate a div using jQuery
take alook at the second link its briliant
live rotate and other css demo brillian http://css3please.com/
take a look at this to be precise
UPDATE:
note this nice addition in middle of the page of note this on http://css3please.com/