Johnson
Oct 16, 2026
Star Rating
A star rating that works on hover and on click, drawn with one SVG path reused five times.
The clearing on mouseleave matters: without it the stars stay wherever your cursor last was and nobody trusts the value. #javascript
The clearing on mouseleave matters: without it the stars stay wherever your cursor last was and nobody trusts the value. #javascript
1 reply