Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jsantell/rotate
UI component for CSS3 rotations
https://github.com/jsantell/rotate
Last synced: about 1 month ago
JSON representation
UI component for CSS3 rotations
- Host: GitHub
- URL: https://github.com/jsantell/rotate
- Owner: jsantell
- License: mit
- Created: 2013-01-25T22:01:36.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-25T23:00:59.000Z (almost 12 years ago)
- Last Synced: 2024-10-16T05:44:38.552Z (3 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
rotate
====UI component for CSS3 rotations for use with [component](https://github.com/component/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
```js
var rotate = require('rotate');
var el = document.getElementById('someDiv');rotate(el, 120); // rotate el by 120 degrees
```