qcobjects-docs
Version: 
The official app and website for documentation of QCObjects
19 lines (12 loc) • 447 B
Markdown
Rotates an object in Z axis.
```javascript
(new RotateZ()).apply(element, angleFrom, angleTo)
```
**angleFrom** and **angleTo** represent an angle value expressed in degrees, starting from 0 (zero) to 360.
```javascript
// the next line will rotate in Z axis the div called #id from 0 degrees to 60 degrees
Tag('div#id').map(div => (new RotateZ()).apply(div, 0, 60));
```