Skip to content
Click to toggle
Interaction
Click toggle
Duration
0.33 s
Artboard
32 × 32 px
Lottie size
2.9 kB

Maxi/Minimize

Toggles between two states on click, or switches immediately when reduced motion is preferred. Free under the MIT license.

actioncollapseexpandfullscreenmaximaximizeminimize

React

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

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

shadcn/ui

npx shadcn@latest add https://useanimations.com/r/maximize-minimize.json
import { AnimatedMaximizeMinimize } from '@/components/animations/maximize-minimize';

<AnimatedMaximizeMinimize size={24} />

Files

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

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

Static SVG

maximize.svg
minimize.svg