---
title: "Product variants animated icon"
description: "Product variants animated icon (Commerce & delivery). Light slides the selection underline. Strong stretches its leading edge past the next swatch, catches up with its trailing edge and presses the chosen swatch."
canonical: https://generativeicons.com/icons/product-variants/
---

# Product variants animated icon

Light slides the selection underline. Strong stretches its leading edge past the next swatch, catches up with its trailing edge and presses the chosen swatch.

- Id: `product-variants`
- Category: Commerce & delivery
- Search terms: swatches, color swatch, colour swatch, color options, colour options, size options, variations, choose color, choose size, product options, colorway, attributes
- Two states: first to second, 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/product-variants.lottie (dotLottie, 8902 bytes, sha256 d6a6e62c7efff7aa8ec9912db21a86a10bb020b1ad38cb93fea78d6c53a5aa8c)
- License: MIT

## Install

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

## React

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

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