Glassy UIs, CSS Battles, and more


​View this email in your browser (or share it with a friend!)

Hello Reader,

Lots of content this week… meaning I was busier than usual and we’re skipping the general musings for this week!

🙋‍♂️ What I’ve been up to this week

Create this trendy blurry glass effect with CSS

video preview​

I didn’t plan for this to coincide with Apple’s new Liquid Glass UI, but I guess the timing was good! It’s not the exact same thing as what Apple’s Liquid Glass, but with the hot mess it is in terms of accessibility, that probably isn't a bad thing!

(If you’re after the full effect, check out this awesome CodePen by Mike Bespalov)

I challenged a CSS Magician to a CSS Battle!

video preview​

I challenged Julia Miocene to a CSS Battle, and was a little humbled by the experience 😅.

The State of CSS Survey (livestream replay)

video preview​

I had a fun livestream, taking most of the State of CSS survey and making quick demos of some features it mentions along the way.

If you haven’t done it yet, take it now!

⚡ Quick tips of the week

🎙️ Podcast

Staying sane when things get busy

show
Staying sane when things get...
May 15 · General Musings with Kev...
16:24
Spotify Logo
 
​

I recently went through a period that could have led to burnout, but I managed to avoid it, so I thought I'd share how I managed to get through it.

LISTEN ON: APPLE | SPOTIFY | YOUTUBE | RSS​

​

📝 Quiz time!

Your

content animates open with a height transition, but snaps shut instantly. What’s missing?

  • Add overflow: hidden to ::details-content so it clips while shrinking
  • Set display: block on details so its height can be animated
  • Transition content-visibility with transition-behavior: allow-discrete
  • Use @starting-style so the closing state has a defined start

As per usual, you'll have to head on over to YouTube to take a stab at the quiz, and once you answer, you'll see if you were right or not.

​

🔗 Other awesome stuff around from the web

And thanks to someone asking how to make a figure with a figcaption match the width of the image even if the text is long, I have a new trick up my sleeve to have the width of an element not impact its siblings!

That was a bit of a mouthful, but Temani Afif was the one to jump in the thread to mention using `contain: inline-size` on the figcaption, and Stephanie Eckles stepped it up a little, adding `inline-size: fit-content` on the figure itself.

🏁

Have a fantastic week!
Kevin


Are you looking to step up your CSS? I've got both free and premium courses to help with that! They cover a range of skill levels too 👇

Beginner friendly (and free)

HTML & CSS for Absolute Beginners

A free course that starts with the absolute basics, and gets to creating some layouts with Flexbox and Grid.

​Enroll →​

Intermediate

CSS Demystified

For those who've been writing CSS for a little bit now, but want to step up their game and start writing CSS with confidence!

​Enroll →​

Intermediate (Frontend Masters)

Build a Modern Site from Scratch

Build a fully responsive site using modern CSS features, along with some polished animations.

​Enroll → (25% off first month of Frontend Masters if you use this affiliate link)

​

If you no longer want to get any emails from me, you can unsubscribe or you can edit your preferences if you'd like pick which emails you get from me.
600 1st Ave, Ste 330 PMB 92768, Seattle, WA 98104-2246

Hi! I'm Kevin

Weekly newsletter, where I talk about tangentially-related front-end development topics and share what I've been up to in the last week, plus any cool/fun/interesting/useful links I come across as well.

Read more from Hi! I'm Kevin

View this email in your browser (or share it with a friend!) PRE-S: You can help shape the future of the web by ranking the Interop 2027 proposals. There are a lot of them, but they’re just asking you to pick the ones that are important to you, and rank the ones you’ve picked. I’ll probably be sharing my ranks next week. Hello Reader, So it turns out that Opus 5.5 is very good at decompiling things. This has led to some mostly silly things, like Minecraft in Elden Ring and Mario in Halo, but...

View this email in your browser (or share it with a friend!) Hello Reader, I’ve been seeing questions like this one more and more often these days. I have a lot of thoughts on this that I’m trying to put together for something bigger, but these are the main reasons I keep making CSS tutorials: First, the obvious one: I like CSS! And I like to show what’s possible, and show that it can be fun and rewarding The second point, specifically showing what’s possible, I think is the important part....

View this email in your browser (or share it with a friend!) Hello Reader, Over the last couple of weeks, I’ve been surprised by how many comments I’ve gotten on YouTube asking how to decide when it’s safe to use a CSS feature, and how to handle browsers that don’t support it. So, a quick rundown on my thought process: Is it a progressive enhancement? Something like interpolate-size: allow-keywords is a great example of a time I’ll say yes. Does it really matter if something doesn’t...