Skip to content
Hover to play, leave to reverse
Interaction
Hover
Category
Action
Duration
2.00 s
Frame rate
30 fps
Artboard
32 × 32 px
Lottie size
2.3 kB

Edit

Animated edit icon

Edit is a 2 s micro animation from the action set that plays on hover and reverses on mouse leave, like Edit 2 and Edit 3. Its static SVGs cover the edit-2 and edit states, so the resting icon still shows which one is active.

Also known aspencilwriterename

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

Use it

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

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

Static SVG

Edit icon, edit-2 state
edit-2.svg
Edit icon, edit state
edit.svg

Other versions

Questions about the Edit icon

›Does Edit finish its animation after mouse leave?

It reverses from the frame it reached back to the start, so a quick pass of the pointer gives a short nudge rather than the full 2 s. Keyboard focus plays it as well; a tap on a touch screen does not.

›Is Edit decorative?

By default it is aria-hidden. Pass aria-label="Edit" to announce it as an image, or leave it hidden when the link or button it sits in has its own text.

›Can Edit play on click instead?

Yes: pass interaction="click-replay". It then replays once from the start on every click unless reduced motion is preferred.