---
title: "Portrait mode animated icon"
description: "Portrait mode animated icon (Photos & camera). Off to on: the two background discs blur, growing and fading to 35%, while the subject stays sharp. Strong snaps the background away and the subject pops forward with one settle. Reverse restores the background."
canonical: https://generativeicons.com/icons/portrait-mode/
---

# Portrait mode animated icon

Off to on: the two background discs blur, growing and fading to 35%, while the subject stays sharp. Strong snaps the background away and the subject pops forward with one settle. Reverse restores the background.

- Id: `portrait-mode`
- Category: Photos & camera
- Search terms: bokeh, background blur, blur background, blur, depth effect, depth of field, shallow focus, subject focus, headshot
- Two states: off to on, 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/portrait-mode.lottie (dotLottie, 17837 bytes, sha256 df0be82fd05b5052672f8c9f0d20550153eb273995098c16fcaad14d503742a1)
- License: MIT

## Install

```sh
npm install @lottiefiles/generative-icons-runtime
npx generative-icons init
npx generative-icons add portrait-mode
```

## React

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

export function PortraitModeIcon() {
  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/portrait-mode.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/portrait-mode/ · https://generativeicons.com/api/icons/portrait-mode
