Links
Split Effects with no Content Duplication
But we can do something like this with no text duplication whatsoever… The trick here is to put the text fill, the text stroke and the progress area each on one RGB channel. In my demo, the text fill uses the blue channel, the text stroke uses the red channel and the progress area uses the green channel.
Web Components are not Framework Components — and That’s Okay
I’m old enough to remember this pattern playing out with CSS itself: huge pushback when it was introduced in the mid 90s. It was clunky for layout and had terrible browser support — “why fix something that wasn’t broken?” folks cried… The majority resistance lasted until the mid '00s when it went from “this will never work” to “this was clearly the solution all along” almost overnight.
The bottom line is, web components reduce the number of use cases where we need to reach for a framework, but complex large applications will likely still benefit from one.
Choosing a Masonry Syntax in CSS
Back in 2020, Firefox released a prototype for doing ‘masonry’ layout in CSS. Now all the browsers are eager to ship something, but there’s a hot debate about the best syntax to use.
Building the Perfect Logo Strip
To create a more harmonious logo strip, we can adjust the height of each logo based on its aspect ratio. If a logo is significantly wider than it is tall (aspect ratio greater than one), we'll reduce its height accordingly. The wider the logo, the smaller its allowed height. This way, all logos maintain a visual balance.
I wasted a day on CSS selector performance to make a website load 2ms faster
For a few minutes, I felt like Indiana Jones staring at the holy grail. 230ms of savings from some CSS selector changes. This felt significant. And yet, the niggling phrase of “CSS selector efficiency is not something to worry about in 2024” kept ringing through my head.
Videos
My process building websites from a design | HTML & CSS
Not sure what steps to take when building a website from a design file? If so, you might like my new video. It's a sped-up overview of my whole process, from setting up the project, interpreting the Figma design into code, and of course trouble shooting and problem solving.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! They solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations.
If you’d like to help with the costs of running Friday Front-End, you can back our Patreon for as little as a dollar a month.