Magnet
A science icon with a 900 ms swing animation, 230 bytes gzipped. Preview is free; copy, download and export need a Basic license.
The motion, frame by frame
Hover or focus the preview. Duration 900 ms.
Code, copy and download need a license.
Previews are always free. One Basic license unlocks every icon, component, pack and export format for life.
Unlock every iconModule size: ~230 B gzip (default style)
Motion data
- Preset
- swing
- Duration
- 900 ms
- Easing
- smooth
- Tracks
- 1
- Size
- 230 B gzip
- science
- magnet
- magnetic
- attract
- physics
- horseshoe
- force
Using the magnet icon
How do I add an animated magnet icon in React?
Install the Popcons React package and import MagnetIcon. It animates on hover and keyboard focus by default; set trigger to "click", "loop" or "in-view" to change that. Pass a label when the icon carries meaning; without one it stays hidden from screen readers.
import { MagnetIcon } from "@popcons/react";
<MagnetIcon size={24} trigger="hover" label="Magnet" />Can I use the magnet animation without JavaScript?
Yes. Export it as CSS + HTML: the animation runs on hover with pure CSS keyframes and switches off automatically when the visitor prefers reduced motion.
Is there a Lottie or Rive version of the magnet icon?
Yes. It exports to Lottie JSON and to a native Rive .riv file with the same swing motion (900 ms, smooth easing), and the Figma plugin inserts it as a Smart Animate prototype component.
How much does the magnet icon add to my bundle?
230 bytes gzipped, on top of a shared 3.0 KB runtime. Every Popcons icon is guaranteed to stay under 1 KB, enforced by automated tests.