Skip to main content

Snippet.rotate()

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

Signature

Snippet snippet.rotate(rotation, overwrite=true)
tip

This method is chainable as it returns the Snippet object

Example

An example of the Snippet.rotate() method