Autofit Width animated icon
An animated autofit width icon from Magic Glyphs, with its own spring motion and sound, in four styles. Part of the full library.
outline and solidThis is a recording of the real animation. Get the full library to use this icon, with its motion and sound, in every format.
Get the full library Edit in icon maker
See it in an interface
How it moves
The icon stretches and the pill stretches. It plays the “expand” sound, which you can swap for any of 528 sounds, your own audio file, or turn off. The motion is a spring, so it settles naturally, and it stays still for people who turn on reduced motion.
Use it
# HTML (no build step)
<magic-glyph name="autofit-width" sound></magic-glyph>
# React, Next.js, Vue, Nuxt
npx magic-glyphs add autofit-width --format react # or vue
# shadcn
npx shadcn@latest add @magic-glyphs/autofit-width
# React Native, SwiftUI, Jetpack Compose, Flutter, Windows
npx magic-glyphs add autofit-width --format react-native --sound # or swiftui, compose, flutter, winuiPaid icons need npx magic-glyphs login YOUR-LICENCE-KEY first. In React it becomes <AutofitWidthGlyph />.
Similar icons
Autofit Height
Square Arrows Horizontal
Hug Width
Arrow Left Right
Arrows Out Horizontal
Arrow Diagonal Both
Square Arrows Vertical
Chevrons Left Right
Align Objects Left
Align Objects Right
Align Objects Center
Hug Height