Click to toggle
- Interaction
- Click toggle
- Duration
- 0.83 s
- Artboard
- 32 × 32 px
- Lottie size
- 2.5 kB
Visibility
Toggles between two states on click, or switches immediately when reduced motion is preferred. Free under the MIT license.
actioneyeeye-offhidepasswordshowvisibility
React
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import visibility from 'react-useanimations/lib/visibility';
<UseAnimations animation={visibility} size={32} />shadcn/ui
npx shadcn@latest add https://useanimations.com/r/visibility.jsonimport { AnimatedVisibility } from '@/components/animations/visibility';
<AnimatedVisibility size={24} />Files
https://useanimations.com/icons/visibility.json # Lottie JSON
https://useanimations.com/icons/visibility.zip # Lottie JSON + static SVGsThe animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.