In previous Developer Spotlights, we’ve featured devs who’ve pushed the craft of constructing award-winning web sites. However net growth is extra than simply translating nice design—Max Barvian is a kind of pioneering devs who’ve a deep understanding of the core mechanics of frontend growth. In 2024, he shared one of many coolest CSS-powered, scroll-driven animations with us right here on Codrops. We will’t shine the sunshine sufficient on Max, as his work represents the subsequent frontier in net growth—one which merges deep technical information with artistic experimentation.
Hello! My identify is Max Barvian. I’m a UI engineer presently working at Clerk.
Initiatives I’m pleased with
NumberFlow
NumberFlow is an animated quantity element for React, Vue, Svelte, and vanilla TS/JS. It was closely impressed by the quantity animations within the great Household app:
I constructed NumberFlow as a customized ingredient with wrapper parts for every framework. All of the animations are powered by the Internet Animations API (WAAPI). It makes use of the FLIP approach, registered customized CSS properties, spring-based linear()
timings, new CSS math features, and composited KeyframeEffect
s for higher interruption dealing with.
The response to NumberFlow has been surreal. 𝕏 is presently utilizing it for his or her analytics dashboard, and Elon Musk even retweeted this screenshot of it:
barvian.me
When it got here time to rebuild my portfolio final yr, my objective was to make some mixture of Godly and the Apple TV house display screen. I’d actually wished a web site like that for years, with a grid of challenge movies that easily transitioned into element pages, however by no means felt assured about pulling it off. Then I discovered the View Transitions API. Regardless of its shortcomings (i.e. no interruption dealing with), it felt like the proper device for the job. View Transitions utilizing snapshots of “previous” views appeared good for the video grid, and meant I wouldn’t have to fret about animating a bunch of <video>
parts on the identical time. In the end, I had to make use of a number of extra tips to get respectable efficiency in the course of the transitions, however I nonetheless can’t think about having constructed the positioning with anything. I used to be honored when Googlers Addy Osmani and Una Kravets shared my little web site as a demo for View Transitions.
Musée
I stumbled upon this unimaginable design by Kevin Pham on Dribbble a pair years in the past and instantly fell in love with it. I had wished to experiment with CSS Scroll Snapping and 3D scenes for some time, and this appeared like the proper candidate. I ended up utilizing React Three Fiber, Movement for React, and Tailwind to implement it. It’s not good (there’s a pesky bug with cellular Safari on the final slide that I haven’t been capable of repair), however I’m fairly proud of the way it turned out. I used to be honored when Guillermo Rauch, Paul Henschel, Matt Perry, and Three.js all reposted it.
Fluid sort tasks
This work might be probably the most boring on the record however I’m nonetheless proud of it. I used to be engaged on a Tailwind plugin for CSS clamp()
once I encountered some longstanding accessibility points with fluid sort. I didn’t need to deliver these points into my plugin, so I spent an entire Sunday watching math movies on YouTube and speaking to my physicist brother to determine find out how to work round them. I finally printed the ends in Smashing Journal with some assist from their nice editors there, and was honored to see Adrian Roselli reference the work in his unique article. Utopia, a preferred fluid clamp generator, additionally built-in the findings into their device.
About me
I received into artistic growth in a seventh grade journalism class, when my instructor made me the webmaster for our faculty newspaper. I requested my dad and mom for Dreamweaver that yr for Christmas and received my first freelance shopper a yr after that. I’ve since moved on from Dreamweaver 🙂, however I’ve by no means wished to do anything professionally. I really feel fortunate that I’ve been capable of make a profession out of my ardour.
Present challenges
At Clerk I’m engaged on constructing the element library we use for our dashboard. It’s been a enjoyable problem to attempt to construct one thing that equally emphasizes UX and DX! I hope to share extra on 𝕏 because it progresses. React Aria Elements has been an enormous inspiration right here.
Instruments
I principally stay in VS Code writing React, Tailwind, and Movement code all day.
Philosophy
Somebody I observe on 𝕏 thought NumberFlow was instance of a quote by Charlie Munger:
“Take a easy thought and take it severely.”
—Charlie Munger
That’s caught with me over the previous few months, and I feel it’s elevated my enjoyment of tasks I beforehand would’ve dismissed as too routine or boring.
It’s an honor to be featured on a web site I’ve been studying my complete profession. Thanks quite a bit, Manoela and the Codrops workforce!