Home > jquery.rotate.js

jquery.rotate.js

Jquery.rotate.js is a project mainly written in ..., based on the Security policy.

A jQuery cssHooks adding a cross browser 'rotate' property to $.fn.css() and $.fn.animate().

This plugin requires jQuery >= 1.4.3

Usage:

$('#myDiv').css('rotate', '90deg'); $('#myDiv').animate({rotate: '180deg'});bravo

Good to know:

The following line of code always returns computed rotation in radians $('#myDiv').css('rotate'); A radian to degree function is included, free of charge: $.rotate.radToDeg( Math.PI ) === 180

Limitations:

  • transformOrigin is not accessible
  • IE will often disappoint you (and there's nothing I can do about it)
Previous:bk-menu.vim