Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaydson/jquery.rotate.js

A jQuery cssHooks adding a cross browser 'rotate' property to $.fn.css() and $.fn.animate().
https://github.com/jaydson/jquery.rotate.js

Last synced: 30 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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)