Skip to content
Click to toggle
Interaction
Click toggle
Category
Action
Duration
0.57 s
Frame rate
29.97 fps
Artboard
32 × 32 px
Lottie size
5.7 kB

Visibility V3

Animated visibility v3 icon

The Visibility V3 animated icon toggles between two states on click in 0.57 s, a good fit for show and hide password toggle in a login form. Its static SVGs cover the eye-off and eye states, so the resting icon still shows which one is active.

Also known aseyeshow passwordhide passwordpassword toggle
eye-offhidepasswordshow

Free under the MIT license · Markdown version · About the files

Use it

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

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

Static SVG

Visibility V3 icon, eye-off state
eye-off.svg
Visibility V3 icon, eye state
eye.svg

Other versions

Questions about the Visibility V3 icon

›Can my app decide whether Visibility V3 shows eye-off or eye?

Make it controlled: pass active and flip it in onClick, e.g. active={on} onClick={() => setOn(!on)}. true plays to the last frame and false back to the first; an icon that mounts with active already true starts there without animating, and with reduced motion it jumps instead of playing.

›Should the Visibility V3 icon be a <button>?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Visibility V3" aria-pressed={on} {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden, and aria-pressed tells screen readers which state is on.