Rotation
Turn images in quarter steps.
<Lightbox rotate {...props} />rotate adds rotate left and right buttons for images. It is off by default.
Live demo. Click a thumbnail to open it.
- Each press turns the image 90 degrees. Turns add up, so four presses bring it back the long way round with one smooth animation.
- A sideways image is fitted again so it still fits the stage.
- Zoom, pinch and pan keep working on a rotated image.
- Rotation resets on slide change, when the viewer closes and with the
0key, which also resets zoom and flip. - The buttons are named by
labels.rotateLeftandlabels.rotateRight, and useicons.rotateLeftandicons.rotateRight.