Click to toggle
- Interaction
- Click toggle
- Duration
- 1.00 s
- Artboard
- 32 × 32 px
- Lottie size
- 1.2 kB
Plus/X
Toggles between two states on click, or switches immediately when reduced motion is preferred. Free under the MIT license.
actionaddcloseexpandplusx
React
npm install react-useanimationsimport UseAnimations from 'react-useanimations';
import plusToX from 'react-useanimations/lib/plusToX';
<UseAnimations animation={plusToX} size={32} />shadcn/ui
npx shadcn@latest add https://useanimations.com/r/plus-to-x.jsonimport { AnimatedPlusToX } from '@/components/animations/plus-to-x';
<AnimatedPlusToX size={24} />Files
https://useanimations.com/icons/plus-to-x.json # Lottie JSON
https://useanimations.com/icons/plus-to-x.zip # Lottie JSON + static SVGsThe animation as Lottie JSON and a ZIP with it and the SVGs. See Files & icons.json.