← All elements

Scalloped Edge Badge

by @admin · 0 views

<div class="seb"><div><b>30%</b><span>OFF TODAY</span></div></div>

About this border

A round sale badge with a slowly turning scalloped edge cut by a clip-path polygon, with no images.

How it works

A pseudo-element behind the text is cut into a toothed circle with a clip-path polygon, and a repeating conic gradient gives the teeth two shades of red. It rotates slowly while the inner disc with the discount stays still, because the text lives in a separate element above it.

Ways to customise it

  • Change the two reds in the conic gradient.
  • Change the 14s duration or remove the animation.
  • Edit the percentage and caption text.

Good to know

The offer is real text, so it can be read aloud and translated. The rotation is switched off for visitors who ask for reduced motion.

Open an example, copy the HTML and the CSS, and paste them into your page. There is nothing to install and no JavaScript to load.

More in Border

View all →