Skip to content
Click to toggle
Interaction
Click toggle
Duration
0.83 s
Artboard
32 × 32 px
Lottie size
2.6 kB

Visibility V2

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-useanimations
import UseAnimations from 'react-useanimations';
import visibility2 from 'react-useanimations/lib/visibility2';

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

shadcn/ui

npx shadcn@latest add https://useanimations.com/r/visibility-v2.json
import { AnimatedVisibilityV2 } from '@/components/animations/visibility-v2';

<AnimatedVisibilityV2 size={24} />

Files

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

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

Static SVG

eye-off.svg
eye.svg