---
title: "Switch camera animated icon"
description: "Switch camera animated icon (Photos & camera). Light: the two arrows turn a half circle inside the camera and land on each other's start. Strong: a short wind-back, then a fast half turn that overshoots and settles."
canonical: https://generativeicons.com/icons/switch-camera/
---

# Switch camera animated icon

Light: the two arrows turn a half circle inside the camera and land on each other's start. Strong: a short wind-back, then a fast half turn that overshoots and settles.

- Id: `switch-camera`
- Category: Photos & camera
- Search terms: flip camera, front camera, rear camera, back camera, selfie camera, toggle camera, change camera, swap camera, reverse camera
- One action, back to rest
- 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/switch-camera.lottie (dotLottie, 5481 bytes, sha256 4ef17f3c9b714362bf6265b244c0d602e120da0aaa22fa11acdcce12dc417010)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add switch-camera
```

## React

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

export function SwitchCameraIcon() {
  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/switch-camera.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/switch-camera/ · https://generativeicons.com/api/icons/switch-camera
