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 strict
لنٹ اور فارمیٹ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 کا مارک اپ وہاں پیسٹ کریں جہاں اسے ہونا چاہیے۔