Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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().
- Host: GitHub
- URL: https://github.com/jaydson/jquery.rotate.js
- Owner: jaydson
- Created: 2010-10-18T19:04:33.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2010-10-18T15:24:44.000Z (about 14 years ago)
- Last Synced: 2024-10-17T16:55:14.438Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 131 KB
- Stars: 3
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This plugin requires jQuery >= 1.4.3
Usage:
------$('#myDiv').css('rotate', '90deg');
$('#myDiv').animate({rotate: '180deg'});bravoGood 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 ) === 180Limitations:
------------- transformOrigin is not accessible
- IE will often disappoint you (and there's nothing I can do about it)