# Rotate

Lucid provides an action to rotate an element on the page.

To use the rotate capability, choose 'Rotate' from the 'Misc' menu, and as usual drag from the circle on the right of the action to the element you wish to rotate. To get started, you may choose some presets from the gear menu on the top left of the window. If you choose 'Slowly rotate forever', the action will cause the element to slowly rotate until you close the browser window.

## Repeat Condition

You may alter a few parameters for the rotation, and also the 'Repeat condition'. Just like a `while` loop or `if` statement, while the Repeat condition is true, the element will rotate. If you set the condition to `true`, the element will rotate forever. You may also set this to a function, so that this function will be continually call while the element rotates. While the function returns `true`, your element will rotate, if returns `false`, the element will stop rotating.

The Callback will be called right away, it will not wait for the rotation to complete (as it may never do so).