---
title: "Auto-rotate animated icon"
description: "Auto-rotate animated icon (Preferences). Light: the phone turns a quarter turn clockwise into landscape. Strong: it winds back 1.8°, whips through the turn past 90° with a stop and settles while hopping 0.96. Reverse turns it back to portrait."
canonical: https://generativeicons.com/icons/auto-rotate/
---

# Auto-rotate animated icon

Light: the phone turns a quarter turn clockwise into landscape. Strong: it winds back 1.8°, whips through the turn past 90° with a stop and settles while hopping 0.96. Reverse turns it back to portrait.

- Id: `auto-rotate`
- Category: Preferences
- Search terms: screen rotation, rotation lock, lock rotation, orientation, screen orientation, landscape, landscape mode, portrait orientation, rotate phone, turn device, sideways
- Two states: portrait to landscape, 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/auto-rotate.lottie (dotLottie, 8155 bytes, sha256 e915da7b9cdfdaef7bbdb59d7eaae395e1f331f33fad245afbbda0776a1fab43)
- License: MIT

## Install

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

## React

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

export function AutoRotateIcon() {
  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/auto-rotate.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/auto-rotate/ · https://generativeicons.com/api/icons/auto-rotate
