Hover to loop
- Interaction
- Hover loop
- Duration
- 1.33 s
- Artboard
- 32 × 32 px
- Lottie size
- 2.3 kB
Flag
Loops while hovered, finishes the current cycle after mouseleave and stays static when reduced motion is preferred. Free under the MIT license.
actionflag
React
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import flag from 'react-useanimations/lib/flag';
<UseAnimations animation={flag} size={32} />shadcn/ui
npx shadcn@latest add https://useanimations.com/r/flag.jsonimport { AnimatedFlag } from '@/components/animations/flag';
<AnimatedFlag size={24} />Files
https://useanimations.com/icons/flag.json # Lottie JSON
https://useanimations.com/icons/flag.zip # Lottie JSON + static SVGsThe animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.