Search
Building Interoperable Web Components That Even Work With React
7.6.2022
Those of us who’ve been web developers more than a few years have probably written code using more than one JavaScript framework. With all the choices out there — React, Svelte, Vue, Angular, Solid — it’s all but inevitable. One …
Building Interoperable Web Components That Even...
Please Give Me Some Space
3.6.2022
There’s all kinds of ways to do that. Some more advisable and better-suited for certain situations than others, of course.
We could do it directly in HTML:
<pWe go from one line...<br<brdown a couple more.</p
But that’s …
Please Give Me Some Space originally...
How to Create Block Theme Patterns in WordPress 6.0
1.6.2022
Block patterns, also frequently referred to as sections, were introduced in WordPress 5.5 to allow users to build and share predefined block layouts in the pattern directory. The directory is the home of a wide range of …
How to Create Block Theme Patterns in WordPress 6.0 originally...
SPAs, Shared Element Transitions, and Re-Evaluating Technology
1.6.2022
Nolan Lawson sparked some discussion when he described a noticeable shift away from single-page applications (SPAs):
Hip new frameworks like Astro, Qwik, and Elder.js are touting their MPA [multi-page application] with “0kB JavaScript by default.”
…
SPAs, Shared Element Transitions,...
Just How Long Should Alt Text Be?
27.5.2022
I teach a class over at the local college here in Long Beach and a majority of the content is hosted on the Canvas LMS so students can access it online. And, naturally, I want the content to be as …
Just How Long Should Alt Text Be? originally published on CSS-Tricks. You should get...
Cool CSS Hover Effects That Use Background Clipping, Masks, and 3D
26.5.2022
We’ve walked through a series of posts now about interesting approaches to CSS hover effects. We started with a bunch of examples that use CSS background properties, then moved on to the text-shadow property where we technically didn’t use …
Cool CSS Hover Effects That Use Background...
A Perfect Table of Contents With HTML + CSS
25.5.2022
Earlier this year, I self-published an ebook called Understanding JavaScript Promises (free for download). Even though I didn’t have any intention of turning it into a print book, enough people reached out inquiring about a print version that …
A Perfect Table of Contents With HTML...
Mastering SVG’s stroke-miterlimit Attribute
24.5.2022
So, SVG has this stroke-miterlimit presentation attribute. You’ve probably seen it when exporting an SVG from a graphic editor program, or perhaps you find out you could remove it without noticing any change to the visual appearance.
After a good …
Mastering SVG’s stroke-miterlimit...
First Look At The CSS object-view-box Property
23.5.2022
Ahmad Shadeed — doing what he always does so well — provides an early look at the object-view-box property, something he describes as a native way to crop an image in the browser with CSS.
The use case? Well, …
First Look At The CSS object-view-box Property originally published...
Dialog Components: Go Native HTML or Roll Your Own?
23.5.2022
As the author of a library called AgnosticUI, I’m always on the lookout for new components. And recently, I decided to dig in and start work on a new dialog (aka modal) component. That’s something many devs like to …
Dialog Components: Go Native HTML or Roll Your Own? originally published...
Verevolf
20.5.2022
Zeldman:
You may not know his name, but he played a huge part in creating the web you take for granted today. And he’s back—kind of.
That would be Glenn Davis and the Verevolf site Zeldman’s talking about. The …
Verevolf originally published on CSS-Tricks. You should get...
Inline Image Previews with Sharp, BlurHash, and Lambda Functions
19.5.2022
Don’t you hate it when you load a website or web app, some content displays and then some images load — causing content to shift around? That’s called content reflow and can lead to an incredibly annoying user experience for …
Inline Image Previews with Sharp...
An Interactive Starry Backdrop for Content
18.5.2022
I was fortunate last year to get approached by Shawn Wang (swyx) about doing some work for Temporal. The idea was to cast my creative eye over what was on the site and come up with some …
An Interactive Starry Backdrop for Content originally published on CSS-Tricks. You should get...
Improving Icons for UI Elements with Typographic Alignment and Scale
17.5.2022
Utilizing icons in user interface elements is helpful. In addition to element labeling, icons can help reinforce a user element’s intention to users. But I have to say, I notice a bit of icon misalignment while browsing the web. Even …
Improving Icons for UI Elements with Typographic...
China Backed Publication: Terra LUNA Crash Vindicates Country’s Ban on Crypto-Related Activities
16.5.2022
An op-ed article published in the state-backed Chinese publication Economic Daily, has suggested that the recent crash of the Terra blockchain’s LUNA and the de-pegging of the UST stablecoin vindicate the Asian country’s decision to ban crypto-related activities. In the article,...
Creating Style Variations in WordPress Block Themes
16.5.2022
Global styles, a feature of the block themes, is one of my favorite parts of creating block themes. The concept of global style variations in WordPress were introduced in Gutenberg 12.5 which would allow theme authors to create alternate …
Creating Style Variations in WordPress Block Themes...
Cool Hover Effects That Use CSS Text Shadow
13.5.2022
In my last article we saw how CSS background properties allow us to create cool hover effects. This time, we will focus on the CSS text-shadow property to explore even more interesting hovers. You are probably wondering how adding shadow …
Cool Hover Effects That Use CSS Text Shadow...
A CSS Slinky in 3D? Challenge Accepted!
12.5.2022
Braydon Coyer recently launched a monthly CSS art challenge. He actually had reached out to me about donating a copy of my book Move Things with CSS to use as a prize for the winner of the challenge — …
A CSS Slinky in 3D? Challenge Accepted! originally published on CSS-Tricks. You should...
COLRv1 and CSS font-palette: Web Typography Gets Colorful
11.5.2022
According to Toshi Omagari, the author of Arcade Game Typography, the world’s first multi-colored digital font was created in 1982 for a never-released video game called Insector. Multi-colored fonts, sometimes called chromatic type, are still relatively rare on the …
COLRv1 and...
Let’s Create a Tiny Programming Language
10.5.2022
By now, you are probably familiar with one or more programming languages. But have you ever wondered how you could create your own programming language? And by that, I mean:
A programming language is any set of rules that convert
…
Let’s Create a Tiny Programming Language originally...