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
Gratuit
État
Suite plus bas ↓
Intégré
Ce que vous obtenez
Clair et sombreUtilise les couleurs de votre thème
Paquets…
Taille du code…
Vérifié à chaque modification
Vérification des typesTypeScript strict
Lint et formatESLint · Prettier
Tests et buildCaptures claires et sombres
Audit de sécuritéAucune vulnérabilité élevée ou critique
Ancienneté des paquetsChaque version publique depuis 7 jours ou plus
CPU au reposMoins d’un demi-cœur au repos, ≤ 30 i/s
Code
Un problème avec ce composant ? Envoyer un avis ›
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.
Chargement…
Idéal pour
Add-to-basket buttons in shops, grocery and food ordering apps.
Fonctionnement
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.
Utilisation
Liez style.css et script.js depuis votre page, puis collez le balisage de index.html à l’endroit voulu.
Aucun paquet en plusReact seulement, rien d’autre
2,4 ko gzippé · 1 fichierLe téléchargement complet