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

08Size computation — converting bytes into human units and comparing against a cap

How many times File.size divides by 1024 (2 to the 10th, Math.pow(2,10)) picks the unit -- KB, MB, GB -- and flooring to one decimal renders it; the ratio to the cap drives a ring gauge that shifts color as a file nears the limit, and an over-limit file gets its excess spelled out in MB.

Best forEmail attachments, cloud upload cards

File.sizeMath.powtransition
Size computation — converting bytes into human units and comparing against a cap
Open in a new tab

08 Size computation — converting bytes into human units and comparing against a cap — Measured area 3.258% · moving frames 8/23Original by GODRICH · SCSS and React ship in the zip · Drag and Drop File Upload UI: 9 Computed Dropzones

The post this demo lives in

Drag and Drop File Upload UI: 9 Computed Dropzones - preview of all 9 demosDrag and Drop File Upload UI: 9 Computed DropzonesDropped files turn into previews computed from their bytes: type, size and count drive the layout, images get pixel-read See all demos in this post

If you like this effect - similar demos