Skip to content
Click to replay
Interaction
Click replay
Category
Text editing
Duration
1.20 s
Frame rate
30 fps
Artboard
32 × 32 px
Lottie size
1.7 kB

Type

Animated type icon

Type is a 1.2 s micro animation from the text editing set that replays on every click, like Italic and Underline. Click icons typically confirm send, save, refresh, download, add-to-cart and formatting buttons.

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

Use it

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

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

Static SVG

Type icon, type state
type.svg

Questions about the Type icon

›Do fast clicks on Type queue up?

No queue: every click restarts the 1.2 s run from the first frame. With reduced motion preferred, clicks still reach your onClick but the icon stays still.

›Should the Type icon be a <button>?

Put its events on a real button with the render prop: render={(events, icon) => <button aria-label="Type" {...events}><span {...icon} /></button>}. The animation itself stays aria-hidden.

›Can Type play on hover instead?

Yes: pass interaction="hover-replay". It then plays once on mouseenter unless reduced motion is preferred. Leaving does not stop it; entering during playback does not restart it.