Explore >> Select a destination


You are here

adropincalm.com
| | bitsofco.de
3.4 parsecs away

Travel
| | Articles on frontend development and more.
| | jshakespeare.com
2.3 parsecs away

Travel
| | Say you want to display a numeric value on a webpage with a count-up animation, like this: There are a few popular libraries that will do this for you, often with lots of configurable bells and whistles. I'm always reluctant to add a dependency to my application that I could write myself in under an hour (and you should be too), so I did just that. Here's the code in vanilla JavaScript using the DOM API (CodePen here): // How long you want the animation to take, in ms const animationDuration = 2000; // C...
| | lukehansford.me
4.0 parsecs away

Travel
| |
| | www.jameskerr.blog
33.6 parsecs away

Travel
| [AI summary] The article introduces a React state management utility called useStateObject, offering methods to manipulate state with dot syntax and TypeScript support for type safety.