Drawing and animating shapes on the Web has been a major challenge for Web developers. Today, I read about mo.js, a new JavaScript library designed to build motion for the Web. It seems like this is exactly what mo.js is trying to solve, the problem of drawing motion graphics on the ...
What I like about style queries is that Lea’s proposal uses thestyle()function, so if and when her proposal makes it into browsers then migrating style queries to inline conditionals and removing the wrappers seems doable. This wouldn’t be a 2025 article if I didn’t mention that migratin...
We don’t need to useBEMwhen we’re making a CSS module. This is for two reasons: Easy parsing– Code liketype.displayis just as legible for developers as the BEM-y.font-size__serif--large. Likely even easier to mentally parse when the BEM selectors get long. Local scope– Say we ...
“TypeScript in 50 Lessons” is yet another one of them. It provides JavaScript developers with a simple, structured and pragmatic guidance towards TypeScript, and explains how to make sense of it all, step-by-step. Designed by Rob Draper and written by Stefan Baumgartner, the book is ...
Sometimes code golf is a part of a competition (ortournamentI suppose, keeping with the parlance). Sometimes it’s just for fun. Sometimes it’s useful. Sometimes the format is to solve a particular challenge or algorithm orachieve certain expected outputfrom given input. ...
Anauditto warn you of unused JavaScript A better “Inspect Element” This is a subtle and, in some ways, very small feature, but it can have profound effects on how we treat web accessibility. Here’s how it works. When you use Inspect Element — what is arguably the most common use ...
And as I learned more and more about JavaScript, I especially loved making games. Sometimes it was just a CodePen demo; sometimes it was a small side project deployed on Vercel or Netlify. I loved the challenge of recreating games like color flood, hangman, or Connect Four in a browser....
Beautiful? Sure. After all,Code is Poetry. This is just HTML, so it can’t be quite as intricate and elegant as a dynamic language, but it still bears the brush strokes of its creator. It gets me to thinking, what makes beautiful code?In HTML, it comes down to craftsmanship.Let’s...
All pseudo classes, elements, @rules, etc. would be handled in the same manner as the example above. I could have an H suffix for “Hover” or I could use an@MqMinW60emsuffix for apply this rule only when this rule is in a window that’s at least 60em’s wide. The resulting CS...
Being a pessimist is an easy thing to fall back on, and I’m trying to be better about it. As we close the year out, I thought it would be a good exercise to take stock of the state of the web and count our blessings.