Skip to content
Click to replay
Interaction
Click replay
Duration
1.13 s
Artboard
32 × 32 px
Lottie size
2.4 kB

X Square

Replays once from the start on every click unless reduced motion is preferred. Free under the MIT license.

actionsquarexx-square

React

npm install react-useanimations
import UseAnimations from 'react-useanimations';
import xSquare from 'react-useanimations/lib/xSquare';

<UseAnimations animation={xSquare} size={32} />

shadcn/ui

npx shadcn@latest add https://useanimations.com/r/x-square.json
import { AnimatedXSquare } from '@/components/animations/x-square';

<AnimatedXSquare size={24} />

Files

https://useanimations.com/icons/x-square.json  # Lottie JSON
https://useanimations.com/icons/x-square.zip   # Lottie JSON + static SVGs

The animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.

Static SVG

x-square.svg