---
title: "Compare revisions animated icon"
description: "Compare revisions animated icon (Teamwork). The compare slider is grabbed and scrubbed across the revisions, and the change shows. Light: the knob swells as it is grabbed, the slider scrubs right, then snaps back to the middle with a hit and a small rebound as the knob lets go, and the changed line on the right writes itself in. Strong: a small pull left, a longer scrub right to a hit, a snap back past the middle that settles, and both right-hand lines rewrite in turn. The frame and the left line never move."
canonical: https://generativeicons.com/icons/compare-revisions/
---

# Compare revisions animated icon

The compare slider is grabbed and scrubbed across the revisions, and the change shows. Light: the knob swells as it is grabbed, the slider scrubs right, then snaps back to the middle with a hit and a small rebound as the knob lets go, and the changed line on the right writes itself in. Strong: a small pull left, a longer scrub right to a hit, a snap back past the middle that settles, and both right-hand lines rewrite in turn. The frame and the left line never move.

- Id: `compare-revisions`
- Category: Teamwork
- Search terms: side by side, before and after, comparison, compare versions, version diff, revision diff, see changes, differences, split compare
- 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/compare-revisions.lottie (dotLottie, 4219 bytes, sha256 d7bc75df112d0d7574ae59de7ae78271fa75030241ea8192e30ca5db823663dc)
- License: MIT

## Install

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

## React

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

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