Micro‑interactions
for next‑gen UI.
7,098 icons that hop, swing and settle when people hover, tap or tab to them. Free and MIT licensed.
- One CSS file, about 2 KB, plus React and Vue components
- Every SVG checked against an allow-list
- Stays still when someone prefers reduced motion
In use
Small motion that answers what people do. Everything here works, so try it.
Plays on tap and on keyboard focus, with no extra code.
Swings every two seconds until it’s opened. That’s .popcon-loop.
Swaps to the filled heart and beats once.
The arrow drops while it works, then a tick draws itself in.
The whole row is the trigger, so the gear turns from anywhere on it.
Parts move on their own: the lid lifts while the bin lands.
Install
Use the stylesheet with plain HTML, or the components in React and Vue.
Add the stylesheet
Link it once in your
<head>, or importpopconui/popconui.cssfrom npm.Copy an icon
Click any icon above and copy it as HTML, JSX or a React import.
Put it in something clickable
A link, button or label plays it on hover and keyboard focus.
data-popcon-trigger | Plays it from a bigger area, like a card or list row. |
.popcon-play | Add it from code to play once, like after a save. |
.popcon-loop | Repeats with a pause, for things that need attention. |
--popcon-lift | Scales the jump for big icons. 3 suits 64px. |
--popcon-speed | Length of one play. The default is 0.7s. |
Safe to ship
These icons end up in other people’s products, so each claim links to the file that proves it.
- Read the sanitizer
Only plain shapes
Every SVG passes an allow-list when the set is built: paths, circles, lines and groups. Scripts, links, styles and event handlers can’t get in, and a self-test checks that.
- Read the CSS
Still for reduced motion
If someone turns on reduced motion, nothing moves. Every animation sits inside a
prefers-reduced-motioncheck. - Read the CSS
No layout shift
Only
transformandstroke-dashoffsetanimate, so the text and buttons around an icon never move. - Get the pinned link
A version that can’t change
Pin
@1.0.0with its integrity hash and the browser refuses any other file. - Naming guide
Quiet for screen readers
Copied icons carry
aria-hiddenandfocusable="false". Label the button, likearia-label="Delete", and that’s what people hear. - Read the licences
Free for commercial work
popconui is MIT licensed, and so is Tabler Icons, which it includes. If you pass the icon files on, keep the licence files with them.