A percent icon that draws itself on hover and spins into a round discount badge when a discount is applied, and back when it is removed.
React + HTML
मुफ़्त
स्थिति
नीचे और ↓
पहले से मौजूद
आपको क्या मिलता है
लाइट और डार्कआपकी थीम के रंग इस्तेमाल करता है
पैकेज…
कोड साइज़…
हर बदलाव पर जाँचा गया
टाइप जाँचTypeScript स्ट्रिक्ट
लिंट और फ़ॉर्मैटESLint · Prettier
टेस्ट और बिल्डलाइट और डार्क स्क्रीनशॉट
सिक्योरिटी ऑडिटकोई हाई या क्रिटिकल एडवाइज़री नहीं
पैकेज की उम्रहर वर्शन 7+ दिन से पब्लिक
आइडल CPUरुके रहने पर आधे कोर से कम, ≤ 30 fps
कोड
इस कंपोनेंट में कुछ गड़बड़ है? फ़ीडबैक भेजें ›
percent-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.
लोड हो रहा है…
इनके लिए अच्छा
Discount, sale and promo toggles in carts, checkouts and pricing pages.
यह कैसे काम करता है
Hover it and the slash draws in, then the two circles. Apply it and the sign spins half a turn as it shrinks, a ring draws round it like a badge and its circles fill in the result color; remove it and it goes back.
कैसे इस्तेमाल करें
अपने पेज से style.css और script.js लिंक करें, फिर index.html का मार्कअप वहाँ पेस्ट करें जहाँ उसे जाना है।