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

05Team stat row — a count-up that runs elapsed-time ratio through an easing function

Dividing the elapsed time requestAnimationFrame hands over each frame by the total duration makes a 0-to-1 ratio, running that ratio through an easing function and multiplying the result by the target number recomputes the displayed integer every single frame, and performance.now fires the whole thing exactly once when the row enters view.

Best forYears-founded and project-count highlights, company-scale intros

requestAnimationFrameeasing functionperformance.now
Team stat row — a count-up that runs elapsed-time ratio through an easing function
Open in a new tab

05 Team stat row — a count-up that runs elapsed-time ratio through an easing function — Measured area 1.517% · moving frames 20/23Original by GODRICH · SCSS and React ship in the zip · 9 Team Page Design Patterns (Copy-Paste)

The post this demo lives in

9 Team Page Design Patterns (Copy-Paste) - preview of all 9 demos9 Team Page Design Patterns (Copy-Paste)Nine team-page sections that compute their layout: columns balance by headcount, bios get read-more only past overflow, See all demos in this post

If you like this effect - similar demos