---
title: "Cake animated icon"
description: "Cake animated icon (Food & Drink). Light: a flame grows from the candle's wick and flickers once. Strong: it catches with a flare to 120%, sways, and settles into a steady flame. The lit candle is retained; preview reset rearms."
canonical: https://generativeicons.com/icons/cake/
---

# Cake animated icon

Light: a flame grows from the candle's wick and flickers once. Strong: it catches with a flare to 120%, sways, and settles into a steady flame. The lit candle is retained; preview reset rearms.

- Id: `cake`
- Category: Food & Drink
- Search terms: birthday, celebration, anniversary, party, candle, dessert, bakery, sweets, pastry, gateau, happy birthday, bday, celebrate
- Two states: prepared to result, 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/cake.lottie (dotLottie, 11296 bytes, sha256 182d4f98aefc61666c1877bf3c433b8cdddf47f691bafa29179e09cdaf426b1e)
- License: MIT

## Install

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

## React

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

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