Max Barvian Profile Banner
Max Barvian Profile
Max Barvian

@MBarvian

Followers
1,784
Following
117
Media
32
Statuses
163

Design Engineer @wearediagram . Currently building: 📦 NumberFlow — 📦 fluid-tailwind —

San Diego, CA
Joined March 2022
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
Pinned Tweet
@MBarvian
Max Barvian
8 days
Introducing <NumberFlow/> for React: Transition, format, and localize numbers. Built on Intl.NumberFormat and Web Animations. Dependency-free. Accessible. Customizable.
110
351
5K
@MBarvian
Max Barvian
2 months
Introducing MotionNumber for @Framer Motion: a ~3kb component to transition, format, and localize numbers. Built on Intl.NumberFormat. Accessible. Customizable.
48
113
2K
@MBarvian
Max Barvian
2 months
Intl.NumberFormat + @Framer Motion layout animations are a match made in heaven. Dropping a package for this (hopefully) soon cc @mattgperry
18
31
880
@MBarvian
Max Barvian
4 months
CSS scroll snapping + Framer Motion's useScroll + useSpring + React Three Fiber = magic Demo: Repo: Design by @punkhoa @mattgperry @0xca0a
19
48
653
@MBarvian
Max Barvian
2 months
Framer Motion layout animations + `width: 0/auto` were perfect for recreating these legendary @Family animations by @lochieaxon :
8
31
521
@MBarvian
Max Barvian
6 months
fluid-tailwind 🌊⚡️ Smoother responsive styles in less code. • Works with every Tailwind utility • Full IntelliSense • Checks accessibility of fluid type 👉
6
41
270
@MBarvian
Max Barvian
21 days
This slider is MotionNumber's final boss. The approach here worked well but relied on 3d transforms which seemed to trash performance in Chrome 🫤. Back to the drawing board
6
1
79
@MBarvian
Max Barvian
9 months
View transitions are my new favorite thing. @astrodotbuild
3
5
52
@MBarvian
Max Barvian
2 months
@framer @mattgperry <MotionNumber value={...} format={{ notation: 'compact' }} />
3
1
48
@MBarvian
Max Barvian
8 days
Vue and/or Svelte support should be coming soon 👋
8
2
59
@MBarvian
Max Barvian
1 month
@k_grajeda @family Fav detail: it computes the nested border radii so they align during the transition
0
2
31
@MBarvian
Max Barvian
6 months
fluid-tailwind v0.2.0 🆕 • Simpler setup • Option to bypass accessibility checks • 2 small bug fixes 👉🏻 Thanks for all the ideas and feedback so far!
4
3
28
@MBarvian
Max Barvian
7 months
@MitchBernstein Not super exciting but it was a cool chance to play around with the View Transitions API (Chrome only atm) 👉🏻
5
3
27
@MBarvian
Max Barvian
4 months
. @jaffathecake 's linear() easing generator is invaluable for emulating springs with CSS alone (necessary for i.e. View Transitions). Same syntax as Framer Motion!
0
3
24
@MBarvian
Max Barvian
2 months
I'm throwing my hat in the ring here (Framer Motion)
@lochieaxon
؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜؜Lochie
2 months
finding it heartwarming seeing a lot of people recreate this animation. it's relatively simple and approachable, so watching how others break it down into it's components is fun to see
11
35
947
1
0
21
@MBarvian
Max Barvian
8 days
This is the successor to MotionNumber, rewritten to address tricky bugs and drop the dependencies. It should work just as well with Framer Motion and handle far more use cases 👍
@MBarvian
Max Barvian
2 months
Introducing MotionNumber for @Framer Motion: a ~3kb component to transition, format, and localize numbers. Built on Intl.NumberFormat. Accessible. Customizable.
48
113
2K
1
0
22
@MBarvian
Max Barvian
2 months
@framer Credits: @family for overall inspiration, @emilkowalski_ for course/tips, @artur_bien for mask-image technique, @mattgperry for Framer Motion (ofc) 💙
1
0
15
@MBarvian
Max Barvian
8 days
Credit to @samselikoff for the digit looping logic 🙂
1
0
13
@MBarvian
Max Barvian
5 months
Tailwind CSS pro tip⭐️ Reduce bundle size and increase performance with the config option: experimental: { optimizeUniversalDefaults: true } (Doesn't work if you're using scoped CSS, i.e. CSS modules, Vue, Svelte, etc.)
1
3
12
@MBarvian
Max Barvian
28 days
Which should be the default transition duration for MotionNumber? (Feel free to suggest an alternative 👋)
1
1
9
@MBarvian
Max Barvian
2 months
@mattgperry You've already seen, but def this one
0
0
10
@MBarvian
Max Barvian
21 days
For the curious, this is the 3d transform I was referring to. I wrapped the numbers in 3d space so I could rotateX the container and apply a bunch of composited WAAPI animations to handle interruptions. Any advice to get this working better in Chrome would be greatly appreciated
2
0
10
@MBarvian
Max Barvian
8 months
@Una (view transitions)
0
0
8
@MBarvian
Max Barvian
8 months
@KevinJPowell I add this on basically every new project (stack children on top of each other). Here's an example where the top and bottom captions overlap, ensuring the pages in the middle are always properly aligned:
Tweet media one
1
0
6
@MBarvian
Max Barvian
4 months
fluid-tailwind now has an official tailwind-merge plugin 🙂
Tweet media one
1
0
6
@MBarvian
Max Barvian
8 months
@MichaelThiessen @vuejs Aren't you trying to reassign to a const too?
0
0
5
@MBarvian
Max Barvian
2 months
Emil's course taught me everything I know about UI animation 💯
@emilkowalski_
Emil Kowalski
2 months
My animation course is live! It contains everything I know about animations on the web. We'll build all of these and more.
60
141
2K
1
0
5
@MBarvian
Max Barvian
2 months
Credit to @wickedmishra for the warning shake animation 👋
@wickedmishra
Preet
2 months
Family's fluid button. Made with Tailwind and Framer Motion. Concept by @family . Thanks to @JaceThings for the font and the icons. Code: .
12
28
718
0
0
4
@MBarvian
Max Barvian
2 months
@benjitaylor I loved @family 's number animations so much that I had to try recreating them on the web 💙 cc @lochieaxon you guys are on another level
1
0
3
@MBarvian
Max Barvian
7 days
@halpindev Oops! MIT, just added to the repo 👋
1
0
3
@MBarvian
Max Barvian
2 months
@lochieaxon Thanks! I should've tried harder to get that working before posting 🤌
2
0
3
@MBarvian
Max Barvian
3 years
@supabase @expo @FlutterDev @StripeDev I'm so happy to see you guys prioritizing local development with these too. One of my favorite parts of the platform!
0
0
3
@MBarvian
Max Barvian
7 months
@MichaelFilipiuk @wander Looks like a great concept + execution!
0
0
2
@MBarvian
Max Barvian
2 months
@lochieaxon feedback welcome! I thought layout animations would be the most performant way to handle this
1
0
2
@MBarvian
Max Barvian
7 months
@natkohasic Tasteful 🤌🏻
1
0
1
@MBarvian
Max Barvian
6 months
@branmcconnell I copied your tweet format for the Tailwind plugin I just shared 😄
@MBarvian
Max Barvian
6 months
fluid-tailwind 🌊⚡️ Smoother responsive styles in less code. • Works with every Tailwind utility • Full IntelliSense • Checks accessibility of fluid type 👉
6
41
270
1
0
2
@MBarvian
Max Barvian
6 months
Animation made possible by @antfu7 's awesome Shiki Magic Move and @screenstudio (ofc)
@MBarvian
Max Barvian
6 months
fluid-tailwind v0.2.0 🆕 • Simpler setup • Option to bypass accessibility checks • 2 small bug fixes 👉🏻 Thanks for all the ideas and feedback so far!
4
3
28
0
0
3
@MBarvian
Max Barvian
2 months
@pie6k Means a lot coming from you, is one of my fav apps 🥲
1
0
2
@MBarvian
Max Barvian
5 months
@fserb @hdv @Una That sounds like a total game-changer 😲
0
0
1
@MBarvian
Max Barvian
21 days
0
0
2
@MBarvian
Max Barvian
1 month
@pacocoursey TIL box-decoration-break 👍
0
0
2
@MBarvian
Max Barvian
1 month
@442utopy @k_grajeda No problem, I use it all the time!
0
0
2
@MBarvian
Max Barvian
2 months
1
0
2
@MBarvian
Max Barvian
8 months
@matths @Rich_Harris @SvelteSociety Even AI mispronounces "Svelte" 🫠
1
0
1
@MBarvian
Max Barvian
6 months
@jh3yy So cool! How did you break the images out of the list items? I did the same thing with this slider but hit some bugs when the list item was close to 100% the width of the container (not pictured)
@MBarvian
Max Barvian
8 months
Another CSS-only carousel with scroll-driven animations 🪄. Design by Risang Kuncoro:
0
0
0
0
0
1
@MBarvian
Max Barvian
21 days
No Framer Motion was used in the making of this video* (as much as I love that library)
0
0
1
@MBarvian
Max Barvian
3 months
@branmcconnell @framer @family That's sweet! I actually went out of my way to support variable-width fonts, but unfortunately the kerning is a little worse when every char is wrapped in an element. Haven't seen a way to correct that:
0
0
1
@MBarvian
Max Barvian
8 months
@huseyingayiran I'd click that 👌🏻
0
0
1
@MBarvian
Max Barvian
8 months
0
0
1
@MBarvian
Max Barvian
3 months
@JohnPhamous So cool. Did you use this by chance?
0
0
1
@MBarvian
Max Barvian
17 days
@ereslear @framer @vue I have, yeah. The plan is to support most major frameworks
0
0
1
@MBarvian
Max Barvian
5 months
fluid-tailwind users: which syntax would you prefer? A) ~md/lg:~text-4xl/7xl B) fluid-md/lg:text-fluid-4xl/7xl (For B, the "fluid" keyword could be changed with a plugin option and there'd be no need for the custom extractor)
A
3
B
2
🍿
1
1
0
1
@MBarvian
Max Barvian
7 months
@jh3yy @guilherme_rodz This is unrelated but could you explain the difference between that selector and this one? [&.bg-blue-500]:bg-red-500
1
0
1
@MBarvian
Max Barvian
3 months
@branmcconnell @framer @family No, do you say that because of the kerning? 🥲
1
0
1
@MBarvian
Max Barvian
21 days
@jh3yy no libs, it's all WAAPI atm. I'll look through yours and try to translate it!
2
0
1
@MBarvian
Max Barvian
6 months
@branmcconnell @tailwindcss This one feels like it could be built-in eventually, awesome 👏
1
0
1
@MBarvian
Max Barvian
5 months
@branmcconnell Congratulations 🙂
1
0
1
@MBarvian
Max Barvian
4 months
@mattgperry @framer This is awesome! I think the post is a draft though?
1
0
1
@MBarvian
Max Barvian
8 months
Making this video in by @pie6k was the most rewarding experience with an app I've had in a while 👏 Side project goals.
0
0
1
@MBarvian
Max Barvian
9 months
@tallneil @astrodotbuild Thanks! Chromium-only at the moment. It falls back gracefully though 🙂
0
0
1
@MBarvian
Max Barvian
6 months
@branmcconnell Whoa, I somehow wasn't following you (thanks algo)! Fixed
0
0
1
@MBarvian
Max Barvian
8 days
@sdothaney Just ran into this myself; decided to do separate packages per wrapper so the peerDeps would be cleaner 🤷‍♂️
0
0
1
@MBarvian
Max Barvian
8 months
Macros feel like total game-changers for FE
@devongovett
Devon Govett
8 months
📢 Parcel v2.12.0 brings support for macros, a new web-based REPL, improved CSS bundling, and manual code splitting! Macros are JS/TS functions that run at build time instead of being bundled. They can generate constants, code, and even assets (eg css)!
Tweet media one
9
42
296
0
0
1
@MBarvian
Max Barvian
9 months
@UnoDwicho @codrops They definitely work better with a trackpad! It *should* still work with a scroll wheel as long you scroll horizontally. Scroll snapping for me gets pretty jumpy with a scroll wheel, though 😐
1
0
1
@MBarvian
Max Barvian
7 days
@ElmoshirX Something like this right?
1
0
2
@MBarvian
Max Barvian
8 days
@k_grajeda Thanks, likewise! Planning to use Tailwind Motion on the docs too🙂
1
0
1
@MBarvian
Max Barvian
8 months
@darylginn Yeah, I'm glad Godly exists b/c I feel like scrolljacking is a prerequisite to win SOTD (or any Awwward really)
0
0
1
@MBarvian
Max Barvian
5 months
0
0
1
@MBarvian
Max Barvian
7 days
@simeydotme Awesome! btw I'm sure you get this a lot but your Pokemon cards are some of the best things I've seen on the web 👋
0
0
1
@MBarvian
Max Barvian
2 months
@ibnlanre Thanks for the honest feedback; I agree with all of it. I've begun an experimental rewrite in vanilla JS/WAAPI to improve performance and address some lingering issues I have with it.
0
0
1
@MBarvian
Max Barvian
2 months
0
0
1
@MBarvian
Max Barvian
7 months
0
0
1
@MBarvian
Max Barvian
28 days
@davatron5000 @Patrick_WC @View I'm using Astro's view transitions router so mine's technically an SPA 😄
1
0
1
@MBarvian
Max Barvian
8 months
@danielsun_ui @figma Love the style! Any plans on posting the Figma doc? 😃
0
0
1
@MBarvian
Max Barvian
5 months
@adamwathan @jh3yy So cool. I think you can get rid of all the scroll margins on the items now right? (fixed the scrollbars for me)
1
0
1
@MBarvian
Max Barvian
8 months
@guilherme_rodz Just keeps getting better!
0
0
1
@MBarvian
Max Barvian
8 days
@piotrkulpinski Glad to hear that! This one should be way more flexible and resilient than the prerelease too 🙂
1
0
1
@MBarvian
Max Barvian
8 months
@devongovett Kinda feel like macros could be a game-changer for FE
0
0
0
@MBarvian
Max Barvian
4 months
@rauchg If you're still hiring a Design Engineer I'd love to chat!
0
0
0
@MBarvian
Max Barvian
2 months
@lochieaxon @family ty! I couldn't unsee the "Analyzing" overlap after you pointed it out 😅
0
0
1
@MBarvian
Max Barvian
7 days
@einbuhrmi No motion blur, it might just look like that on the video 👋
1
0
1
@MBarvian
Max Barvian
3 months
@thetinypod Congrats on the launch!!
0
1
1
@MBarvian
Max Barvian
8 days
@austin_malerba Thanks! Big fan of your work as well ✌️
0
0
1
@MBarvian
Max Barvian
2 months
0
0
1
@MBarvian
Max Barvian
6 months
@tallneil Thanks! I'm open to feedback about the syntax 🙂
0
0
1
@MBarvian
Max Barvian
6 months
@MBarvian
Max Barvian
6 months
Animation made possible by @antfu7 's awesome Shiki Magic Move and @screenstudio (ofc)
0
0
3
0
0
1
@MBarvian
Max Barvian
2 months
@necatikcl So cool! Any chance you're sharing the src for these? 😮
0
0
1
@MBarvian
Max Barvian
4 months
@rauchg Thanks a lot for the repost! Next.js 15 RC under the hood with the React Compiler 🤌
1
0
1