Ads

Saturday 26 July 2014

jQuery Rotate : Plugin that Rotate Images by any Angle

Download   Demo


This is a small plugin for jQuery that adds a nice feature to rotate images (img html objects) by a given angle on web pages. An experimental version 3 tries to rotate all objects, but with some small issues. 


Implementation:


To support so many old browsers there are few techniques being used:


  • For modern browsers (Safari, Chrome, Opera, IE 9) plugin uses native CSS3 attributes (-ms-transform, -transform-property, -webkit-transform, -o-transform).

  • For older browsers with CANVAS support image is being replaced by a CANVAS component that can be easily rotated using internal canvas methods,

  • For older IE browsers VML is being used,

Supported Browsers:


  • Internet Explorer 6.0 >

  • Firefox 2.0 >

  • Safari 3 >

  • Opera 9 >

  • Google Chrome

Notices:


Include script after including main jQuery. Whole plugin uses jQuery namespace and should be compatible with older version (unchecked).


Please put all issues into a ISSUES page. If you want – you can also checkout repository and path the code on your own. If you do that please send me patch so I can apply it into trunk.



jQuery Rotate : Plugin that Rotate Images by any Angle

No comments:

Post a Comment