GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

04Discount badge — a badge that works out its own percentage from list price and sale price

Dividing the gap between list price and sale price by the list price works out the discount percentage for the badge text, and a separately computed countdown to the discount's end time flips the badge color once little time is left.

Best forLaunch-discount badges, limited-time promo pricing

requestAnimationFrameMath.flooraria-live
Discount badge — a badge that works out its own percentage from list price and sale price
Open in a new tab

04 Discount badge — a badge that works out its own percentage from list price and sale price — Measured area 1.447% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · 9 Pricing Page Design Sections (Copy-Paste)

The post this demo lives in

9 Pricing Page Design Sections (Copy-Paste) - preview of all 9 demos9 Pricing Page Design Sections (Copy-Paste)Nine pricing sections that compute: the billing switch reworks every plan's price on the spot, the discount badge derive See all demos in this post

If you like this effect - similar demos