# Crop animated icon

> MIT-licensed Crop animated icon: replays on every click. Use it in React or shadcn/ui, or get the Lottie JSON or SVG.

The Crop animated icon replays on every click in 1.13 s, a good fit for crop and cut tools in image editors. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons.

## Facts

- Interaction: [Click replay](https://useanimations.com/interactions/click-replay). Replays once from the start on every click unless reduced motion is preferred.
- Category: [Design & layout](https://useanimations.com/categories/design-layout)
- Duration: 1.13 s at 30 fps
- Artboard: 32 × 32 px
- Lottie size: 2.1 kB
- License: MIT, attribution optional ([Licencing & Terms](https://useanimations.com/licencing-and-terms))

## Files

- Lottie JSON: https://useanimations.com/icons/crop.json
- Static SVG (crop): https://useanimations.com/icons/crop/crop.svg
- ZIP (Lottie JSON and SVGs): https://useanimations.com/icons/crop.zip
- shadcn registry item: https://useanimations.com/r/crop.json
- Web page: https://useanimations.com/icons/crop

## React

```bash
npm install react-useanimations
```

```jsx
import UseAnimations from 'react-useanimations';
import crop from 'react-useanimations/lib/crop';

<UseAnimations animation={crop} size={32} />
```

## shadcn/ui

```bash
npx shadcn@latest add https://useanimations.com/r/crop.json
```

```tsx
import { AnimatedCrop } from '@/components/animations/crop';

<AnimatedCrop size={24} />
```

## HTML and lottie-web

```html
<div id="crop-icon" style="width: 48px; height: 48px"></div>

<script src="https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js"></script>
<script>
  const el = document.getElementById('crop-icon');
  const a = lottie.loadAnimation({ container: el, renderer: 'svg', loop: false, autoplay: false, path: 'https://useanimations.com/icons/crop.json' });
  const motion = matchMedia('(prefers-reduced-motion: reduce)');
  el.addEventListener('click', () => { if (!motion.matches) a.playSegments([0, a.totalFrames], true); });
</script>
```

## FAQ

### Do fast clicks on Crop queue up?

No queue: every click restarts the 1.13 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.

### Should the Crop icon be a <button>?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Crop" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.

### Can Crop play on hover instead?

Yes: pass interaction="hover-replay". It then plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it.

## Related icons

- [Mouse Pointer](https://useanimations.com/icons/mouse-pointer) (click-replay)
- [Scissors](https://useanimations.com/icons/scissors) (click-replay)
- [Columns](https://useanimations.com/icons/columns) (hover-replay)
- [Layout](https://useanimations.com/icons/layout) (hover-replay)
- [Grid](https://useanimations.com/icons/grid) (hover-replay)
- [Table](https://useanimations.com/icons/table) (hover-replay)
- [Move](https://useanimations.com/icons/move) (hover-replay)
- [Layers](https://useanimations.com/icons/layers) (hover-replay)
- [Pen Tool](https://useanimations.com/icons/pen-tool) (hover-replay)

[All design & layout icons](https://useanimations.com/categories/design-layout) · [All icons](https://useanimations.com/icons)
