---
title: "Cookie banner animated icon"
description: "Cookie banner animated icon (Legal & compliance). Light: a banner rises from the bottom of the screen and its cookie and message fade in. Strong: it shoots up past its height, settles and the content lands. The shown banner is retained; the reverse drops it away."
canonical: https://generativeicons.com/icons/cookie-banner/
---

# Cookie banner animated icon

Light: a banner rises from the bottom of the screen and its cookie and message fade in. Strong: it shoots up past its height, settles and the content lands. The shown banner is retained; the reverse drops it away.

- Id: `cookie-banner`
- Category: Legal & compliance
- Search terms: cookies, cookie consent, cookie notice, cookie popup, cookie bar, accept cookies, consent banner, cookie policy, tracking consent, privacy notice, cookie wall, eprivacy
- Two states: hidden to shown, 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/cookie-banner.lottie (dotLottie, 17590 bytes, sha256 218390cfffc793eb82f888d3e8b244066a628c78a7c69188dfd893099d8cf927)
- License: MIT

## Install

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

## React

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

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