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

03Width-Weighted Count: Full-Width 2, Half-Width 1

Each character gets a width weight (half-width 1, full-width 2) from its code point range and the weights are summed, drawing a bar up to an 80-width limit whose cells are twice as wide for Japanese full-width text as for Latin letters.

Best forFields whose limit is counted by width

WIDTH_LIMITHALF_WEIGHTFULL_WEIGHTPOP_MS
Width-Weighted Count: Full-Width 2, Half-Width 1
Open in a new tab

03 Width-Weighted Count: Full-Width 2, Half-Width 1 — Measured area 9.971% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Textarea Character Counter: 9 Grapheme-Aware UIs

The post this demo lives in

Textarea Character Counter: 9 Grapheme-Aware UIs - preview of all 9 demosTextarea Character Counter: 9 Grapheme-Aware UIsA character count looks like one line of length, until one emoji counts as 2 and the number flickers mid-composition — s See all demos in this post

If you like this effect - similar demos