---
title: "Swipe animated icon"
description: "Swipe animated icon (Actions). A finger swipes across the screen. Light: the hand eases back a touch, then swipes left under the arrow, runs a little past and settles; the arrow's left head kicks out as the finger reaches it, and the hand glides back to the middle. Strong: the hand swipes left and then all the way right, each head kicking out in turn as the finger reaches it, before the hand settles back in the middle."
canonical: https://generativeicons.com/icons/swipe/
---

# Swipe animated icon

A finger swipes across the screen. Light: the hand eases back a touch, then swipes left under the arrow, runs a little past and settles; the arrow's left head kicks out as the finger reaches it, and the hand glides back to the middle. Strong: the hand swipes left and then all the way right, each head kicking out in turn as the finger reaches it, before the hand settles back in the middle.

- Id: `swipe`
- Category: Actions
- Search terms: slide, swipe left, swipe right, flick, drag finger, gesture, horizontal scroll, scroll sideways, carousel, finger slide
- 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/swipe.lottie (dotLottie, 3848 bytes, sha256 af2e629d2a3c9d1f34045aab8425a511ca2cd10fb402fae07fb346108d6d21da)
- License: MIT

## Install

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

## React

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

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