---
title: "Crossfade animated icon"
description: "Crossfade animated icon (Music & audio). Light: the fader knob slides from A to B while curve A dims and curve B brightens. Strong: the knob pulls back, overshoots the B end and settles. Reverse rides it back to A."
canonical: https://generativeicons.com/icons/crossfade/
---

# Crossfade animated icon

Light: the fader knob slides from A to B while curve A dims and curve B brightens. Strong: the knob pulls back, overshoots the B end and settles. Reverse rides it back to A.

- Id: `crossfade`
- Category: Music & audio
- Search terms: cross fade, crossfader, fader, dj mixer, mixer, mixing, audio mix, fade in, fade out, dj
- Two states: Track A to Track B, 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/crossfade.lottie (dotLottie, 8644 bytes, sha256 7522cc0c70f8b124a1c344436d847d7927b457eb181aa546fb8ba84761c9bd9a)
- License: MIT

## Install

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

## React

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

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