Snippet.rotate()

The Snippet.rotate() method allows you to scale a snippet. Under the hood, it sets the data-rotate property.

Signature

Javascript
Snippet snippet.rotate(rotation, overwrite=true)
TIP|

This method is chainable as it returns the Snippet object

Example