CSS
Getting Creative With HTML Dialog
So, how can you take dialogue box design beyond the generic look of frameworks and templates? How can you style them to reflect a brand’s visual identity and help to tell its stories? Here’s how I do it in CSS using ::backdrop
, backdrop-filter
, and animations.
CSS Minecraft
There is no JavaScript on this page. All the logic is made 100% with pure HTML & CSS. For the best performance, please close other tabs and running programs.
How to correctly use if() in CSS
CSS is adding a new way to express conditions using an if()
syntax. While it looks easy to use, there is a gotcha you should be aware of.
Two lines of Cross-Document View Transitions code you can use on every website today
You can add two lines of code to your website and fundamentally change the behavior of what happens when people navigate from one page to another on your site:
@view-transition {
navigation: auto;
}
This activates cross-document View Transitions. It ensures any element that’s the same from one page to the next stays exactly in place. It keeps the background color of the site constant. And then anything that’s different — new elements appearing, old elements disappearing, page background changing to a different color — by default, all of these changes happen in a crossfade.
What about browser support? Cross-document View Transitions are supported in Safari 18.2, Chrome 126, and Edge 126. Which means about 85% of users globally are using a browser with support. You can use View Transitions for this purpose with absolute confidence today, since the fallback behavior is to simply do nothing. Browsers without support act exactly the same as if you did not use this code. So why not use it? It will do something for the majority of your users, while the rest see no change at all.
CSS Spotlight Effect
I recently made an experiment about Proximity Reactions. The idea was to create an interactive effect according to the mouse position relative to elements. Then I made a less JavaScript, more CSS version where the only thing JavaScript does is to pass the mouse position into a couple of CSS custom properties. That’s it. All the heavy lifting happened inside the CSS itself, safely away from the JavaScript thread.
That got me thinking: if we can get the mouse position in CSS so easily, what else can we build with that? I started tinkering, trying out different interaction patterns, and eventually got to this Spotlight Effect that’s easy to create, simple to customize, and looks surprisingly slick, all with just a few lines of CSS.
HTML
HTML Only Experiments
A collection of experiments with no images, CSS, or JavaScript. Just good ol' HTML.
JavaScript
Is It JavaScript?
“It’s Just JavaScript!” gets thrown around a lot, often to imply that a particular project is approachable because it can be achieved writing the same, ubiquitous, standardized scripting language we all know and love: JavaScript.
Take what you learned moving pixels around in a browser and apply that same language to running a server and querying a database. You can do both with the same language, It’s Just JavaScript!
But wait, what is JavaScript? As always, context Is everything.
JavaScript's upcoming Temporal API and what problems it will solve
The upcoming Temporal API will fix many problems and inconveniences of the old Date object. In this article I'll explain the upcoming Temporal API with easy to understand examples.
Robotron: 2084 Sound Wave Generator
This is a re-implementation of Robotron: 2084's sound wave generator function.
Github repo here.
Smooothy - Smooth Extensible Slider
Smooth, fast and responsive carousel/slider. Framework agnostic.
A collection of examples of the slider in action and implementation ideas is here.
UX
Geist
Vercel's design system called Geist. Made for building consistent and delightful web experiences.
Miscellaneous
14 DevTools Tricks That`ll Make You a Better Developer
In this video, I’ll show you 14 powerful DevTools features you probably didn’t know existed. From hidden performance tools to smart debugging tricks — these workflows will save you time and help you ship faster.
Really worth a watch - you'll probably discover several new things.
Ruthless SEO Audit
Enter your URL, get a merciless SEO audit that tears apart your site and spits out clear fixes. No fluff, just brutal insights to boost Google & LLM rankings.
Glow Icons — Open source icons made for UI
442 light icons in 2 styles, crisp and beautiful at any size — perfect for interfaces. Figma file available.