---
title: "Range slider animated icon"
description: "Range slider animated icon (Forms & input). A range slider is widened. Light: both handles are pressed, drag apart along the track with the selected band stretching between them, stop dead on their new values and are released; the outer bars of the histogram above light up as the range takes them in. Strong: the handles drag apart in two clicks, stopping dead at a midpoint and again at the new values, the newly included bars hop as they light up, and the handles spring on release. The values never overshoot; the reverse drags the handles back together."
canonical: https://generativeicons.com/icons/range-slider/
---

# Range slider animated icon

A range slider is widened. Light: both handles are pressed, drag apart along the track with the selected band stretching between them, stop dead on their new values and are released; the outer bars of the histogram above light up as the range takes them in. Strong: the handles drag apart in two clicks, stopping dead at a midpoint and again at the new values, the newly included bars hop as they light up, and the handles spring on release. The values never overshoot; the reverse drags the handles back together.

- Id: `range-slider`
- Category: Forms & input
- Search terms: price range, price filter, min max, minimum maximum, dual slider, double slider, two thumb slider, range selector, range filter, histogram, from to
- Two states: narrow-range to wide-range, 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/range-slider.lottie (dotLottie, 9051 bytes, sha256 213271f2b06058a29073ae465b9871bdc64dc4f24bd8d746dff75cd34ff76c59)
- License: MIT

## Install

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

## React

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

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