Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 501 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 501 Bytes

rotate

UI component for CSS3 rotations for use with component. Works in Chrome, Firefox, Opera, Safari, IE9+

Installation

component install jsantell/rotate

API

rotate(el, deg)

rotate is just a function that takes an element and rotation value (in degrees) and rotates that element.

Example

var rotate = require('rotate');
var el = document.getElementById('someDiv');

rotate(el, 120); // rotate el by 120 degrees