Skip to content
Hover to loop
Interaction
Hover loop
Duration
1.67 s
Artboard
32 × 32 px
Lottie size
4.4 kB

Codepen

Loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred. Free under the MIT license.

codepensocial media

React

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

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

shadcn/ui

npx shadcn@latest add https://useanimations.com/r/codepen.json
import { AnimatedCodepen } from '@/components/animations/codepen';

<AnimatedCodepen size={24} />

Files

https://useanimations.com/icons/codepen.json  # Lottie JSON
https://useanimations.com/icons/codepen.zip   # Lottie JSON + static SVGs

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

Static SVG

codepen.svg