Hover to play
- Interaction
- Hover replay
- Duration
- 1.20 s
- Artboard
- 32 × 32 px
- Lottie size
- 1.0 kB
Square
Plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it. Free under the MIT license.
shapes & mathsquare
React
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import square from 'react-useanimations/lib/square';
<UseAnimations animation={square} size={32} />shadcn/ui
npx shadcn@latest add https://useanimations.com/r/square.jsonimport { AnimatedSquare } from '@/components/animations/square';
<AnimatedSquare size={24} />Files
https://useanimations.com/icons/square.json # Lottie JSON
https://useanimations.com/icons/square.zip # Lottie JSON + static SVGsThe animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.