Skip to content

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

Notifications You must be signed in to change notification settings

jaydson/jquery.rotate.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published