---
title: "Swap arrows animated icon"
description: "Swap arrows animated icon (Arrows). The two lanes trade. Light: the top arrow launches right and fades before the edge while a fresh one slides in from the left and settles; the bottom arrow does the same to the left, 80 ms behind. Strong: each winds back first, launches farther with a speed trail, and its fresh arrow lands with a bigger overshoot and settles in two beats."
canonical: https://generativeicons.com/icons/arrows-swap/
---

# Swap arrows animated icon

The two lanes trade. Light: the top arrow launches right and fades before the edge while a fresh one slides in from the left and settles; the bottom arrow does the same to the left, 80 ms behind. Strong: each winds back first, launches farther with a speed trail, and its fresh arrow lands with a bigger overshoot and settles in two beats.

- Id: `arrows-swap`
- Category: Arrows
- Search terms: switch, exchange, interchange, trade, back and forth, switch places, opposite arrows, swap sides
- 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/arrows-swap.lottie (dotLottie, 3637 bytes, sha256 665a23907ea19459578e15b1012cdd083a7f3b0a7b3c21ac912914717e684beb)
- License: MIT

## Install

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

## React

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

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