Skip to content
Click to toggle
Interaction
Click toggle
Category
Action
Duration
1.00 s
Frame rate
30 fps
Artboard
32 × 32 px
Lottie size
3.1 kB

Maxi/Minimize V2

Animated maxi/minimize v2 icon

Maxi/Minimize V2 is a 1 s micro animation from the action set that toggles between two states on click, like Maxi/Minimize and Minimize 2. Its static SVGs cover the maximize-2 and minimize-2 states, so the resting icon still shows which one is active.

collapseexpandfullscreenmaximize-2

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

Use it

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

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

Static SVG

Maxi/Minimize V2 icon, maximize-2 state
maximize-2.svg
Maxi/Minimize V2 icon, minimize-2 state
minimize-2.svg

Other versions

Questions about the Maxi/Minimize V2 icon

›Can my app decide whether Maxi/Minimize V2 shows maximize-2 or minimize-2?

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 Maxi/Minimize V2 icon be a <button>?

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