Wow thanks. One more day off. Wanna come over for a coffee? I guess I can manage to bake a cake as well.
Posts by Nils Binder
After thinking it through, I’d vote for 100px across all elements. It reminds me of how line-height behaves—set it to 1.5em and that computed value flows down to children. Not a perfect analogy, but it aligns with what feels intuitive.
Ever wanted to get rid of “widows” in the last row of your auto-generated grid? I found a solution with modern CSS. We do need to know the child count though.
@kevinpowell.co I actually came up with this after you asked about use-cases for child-count.
codepen.io/enbee81/pen/...
✍️ New post: The Shape of Friction
I wrote a short blog post reply to @davatron5000.bsky.social’s recent post (👏) about generative AI, friction, and people.
matthiasott.com/notes/the-sh...
Also related to sliders. If you want to place them on a 3d hexagon or octagon or whatever depending on the child count you need to know how many items there are to get the correct angle for the transforms.
In a css carousel it’s hard to get the width of the scroll marker group. The scroll markers don’t really “live” inside the group. So when know the number of children you can give it a fixed width placing the scroll buttons next to it.
Parts of your “design” are more accessible at least… not sure about the hidden history though
“We made the buttons on the screen look so good you'll want to lick them.”
Steve Jobs
Could you maybe also use the calculated hypot value (using 100cqi and 100cqb) and divide it by 1px? Support seems to be similar to scroll animations.
caniuse.com/mdn-css_type...
Looking forward to it. I didn’t look too much into how you calculated the length and what all the keyframe animations do. So will definitely read it.
I was quite proud of this solution that uses scroll driven animations for the sticky headers. But having a native solution would be even better of course
codepen.io/enbee81/pen/...
+1 for the need to have a way to detect support so previous solutions don’t break.
And I also have to mention @kevinpowell.co’s video that also helped me understand all this:
youtu.be/Y-3tPDZCk2o?...
After finally understanding @css-only.dev's demo for calculating the shortest paths between points, I was able to create this little spotlight effect. Pretty happy with the result!
codepen.io/enbee81/deta...
Thanks for including my little article 🥰
🥰
Icon of Notion’s AI agent with a small red chili pepper hat.
@bell.bz They dressed up.
They put on their best little chili hat.
It’s almost Christmas — they’re basically festive now — and you’re still pretending they don’t exist. Brutal.
A bit more niche, but next to fancy things like scroll-driven animations, CSS also introduced new math functions like round() and mod(). With them, you can take a time value like 1045 (without the colon) and calculate the minutes passed since midnight.
bsky.app/profile/ichi...
If you want the full breakdown of how this is done, here’s the write-up 👇
9elements.com/blog/buildin...
Build a multi-stage timetable for a conference — fully in modern CSS.
Each hour grows automatically to fit all sessions.
🍾 heavy use of subgrid.
🍾 round() and mod() to place sessions accurately
🍾 scroll-driven animations for sticky stage headings
There's a new #CSS Working Group poll to get feedback on different names for the infamous 'Pinterest' layout.
- Since it uses many of the grid-* properties, `grid` will be in the name somewhere
- We don't use metaphors in CSS names, so `masonry` is not listed here
docs.google.com/forms/d/e/1F...
Just bc we got used to it doesn’t mean it’s a good name. IMHO something like grid lanes is more intuitive for future developers to grasp than masonry.
Got it! Let’s see if I can finally understand where and why I can — and should — use them.
Thanks, @sarasoueidan.com, for the second shout-out — your recommendation tipped me over the edge to give it a try.
Absolutely love this. 🥰
Quite useful when writing repetitive stuff in css. Like variable definition for dark light themes or nth-child delay things. When writing js I found it to be horrible.
Once it even did a full “slide out of view.” Could be a nice effect — but I’d like to control when that happens, not have Safari decide by accident.
@jensimmons.bsky.social maybe you can tell me if this is a bug or a feature that I can opt out of.
Has anyone else seen this in iOS 26? Sticky and fixed elements shift slightly out of view when scrolling down, then snap back when scrolling up. I made a demo to test it: cdpn.io/pen/debug/Qw... Curious if others can reproduce.
Green awning of a café with the name “TAILWIND café | bar” printed in pink and white.
Visiting Seattle… I was NOT prepared for this. 🤣🤣
Breakfast was delicious though!
#tailwind