Color-Shift Progress Bar

A looping @keyframes animation drives a registered number and a registered integer at once. The number sweeps the fill's hue from red to green (hsl(calc(var(--_p) * 120) 70% 50%)), and the integer feeds a CSS counter for the live "N%" label. contrast-color() keeps that label readable through the whole sweep. No JavaScript.

Uploading…