---
title: "Rotate photo animated icon"
description: "Rotate photo animated icon (Photos & camera). Landscape to portrait: the photo turns a quarter turn clockwise about its centre. Strong winds back 10°, overshoots to 98° with a hard stop and settles while the arrow nods. Reverse turns it back."
canonical: https://generativeicons.com/icons/rotate-photo/
---

# Rotate photo animated icon

Landscape to portrait: the photo turns a quarter turn clockwise about its centre. Strong winds back 10°, overshoots to 98° with a hard stop and settles while the arrow nods. Reverse turns it back.

- Id: `rotate-photo`
- Category: Photos & camera
- Search terms: rotate image, rotate picture, turn image, rotate 90, rotate right, rotate clockwise, orientation, landscape to portrait, quarter turn
- Two states: landscape to portrait, played forward and back
- Styles: outline, solid, duotone; outline weights 1.5, 2, 2.5 (any from 1 to 3); motion light or strong
- File: https://generativeicons.com/assets/rotate-photo.lottie (dotLottie, 9695 bytes, sha256 0d7243672a38979e6b3ef2619aeb1cee6938f6400cda20e690c9d346d273e04f)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add rotate-photo
```

## React

```tsx
// npm install @lottiefiles/generative-icons-react
'use client';
import { AnimatedIcon } from '@lottiefiles/generative-icons-react';
import icon, { src } from './generative-icons/rotate-photo.mjs';

export function RotatePhotoIcon() {
  return <AnimatedIcon icon={icon} src={src} size={32}
    color="#ffffff" variant="outline" weight={2}
    motion="light" theme="dark" />;
}
```

## JavaScript

```js
import { createIcon } from '@lottiefiles/generative-icons-runtime';
import icon, { src } from './generative-icons/rotate-photo.mjs';

const handle = await createIcon(canvas, {
  icon, src,
  color: '#ffffff', style: 'outline', weight: 2,
  motion: 'light', theme: 'dark'
});
button.addEventListener('click', () => handle.play());
// On removal: handle.destroy();
```

More: https://generativeicons.com/icons/rotate-photo/ · https://generativeicons.com/api/icons/rotate-photo
