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

02Half-step precision fill — the filled value splits into a whole or half value depending on which half of a star's width the pointer falls in

The pointer's horizontal position value determines which half of a single star's width value it falls in, and the filled value is set to either a whole number value or a half-step value accordingly.

Best forA review form for finer ratings, a decimal rating input based on a five-star scale

valueFromX(clientX)STAR_W = 44steps = [0.5, 1, 1.5, …, 5]
Half-step precision fill — the filled value splits into a whole or half value depending on which half of a star's width the pointer falls in
Open in a new tab

02 Half-step precision fill — the filled value splits into a whole or half value depending on which half of a star's width the pointer falls in — Measured area 4.027% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Star Rating UI: 9 Interactive Rating Patterns

The post this demo lives in

Star Rating UI: 9 Interactive Rating Patterns - preview of all 9 demosStar Rating UI: 9 Interactive Rating PatternsOne fill value follows the finger's position value in real time, one overlays an average's decimal part on a star, and o See all demos in this post

If you like this effect - similar demos