A basket icon that draws itself on hover and fills up with goods when something is added, then goes back on its own.
React + HTML
Kostenlos
Zustand
Mehr unten ↓
Eingebaut
Das bekommst du
Hell und dunkelNutzt deine Theme-Farben
Pakete…
Codegröße…
Bei jeder Änderung geprüft
TypprüfungTypeScript strict
Lint und FormatESLint · Prettier
Tests und BuildScreenshots in Hell und Dunkel
Sicherheits-AuditKeine hohen oder kritischen Hinweise
PaketalterJede Version seit 7+ Tagen öffentlich
CPU im LeerlaufUnter einem halben Kern in Ruhe, ≤ 30 fps
Code
Stimmt etwas nicht mit dieser Komponente? Feedback senden ›
basket-iconHTML
index.htmlpageThe markup to copy, between the copy-from-here comments, on a demo page.
style.cssstyleThe styles: copy them into your CSS.
script.jsscriptThe behavior: load it after the markup.
index.html
The markup to copy, between the copy-from-here comments, on a demo page.
Lädt…
Gut für
Add-to-basket buttons in shops, grocery and food ordering apps.
So funktioniert es
Hover it and the basket draws in, then its weave and handle. Once added, the handle swings, the basket squashes and an apple and an orange pop up over the rim in the result color, then it goes back.
So nutzt du es
Binde style.css und script.js in deine Seite ein und füge dann das Markup aus index.html dort ein, wo es hin soll.