Using Performant Next-Gen Images in CSS with image-set
23.6.2021
The CSS image-set() function has been supported in Chromium-based browsers since 2012 and in Safari since version 6. Support recently landed in Firefox 88. Let’s dive in and see what we can and can’t do today with image-set().…
The post Using Performant Next-Gen Images in CSS with image-set...
“Weak declaration”
23.6.2021
PPK looks at aspect-ratio, a CSS property for layout that, for the most part, does exactly what you would think it does. It’s getting more interesting as it’s behind a flag in Firefox and Safari now, so we’ll have …
The post “Weak declaration” appeared first...
Inline to Menu Link Animation
23.6.2021
An experimental inline-to-menu-link animation based on a concept by Matthew Hall.
The post Inline to Menu Link Animation appeared first on Codrops
inherit, initial, unset, revert
22.6.2021
There are four keywords that are valid values for any CSS property (see the title). Of those, day to day, I’d say I see the inherit used the most. Perhaps because it’s been around the longest (I think?) but also …
The post inherit, initial, unset, revert appeared first...
Using Custom Elements in Svelte
22.6.2021
Svelte fully supports custom elements (e.g. <my-component>) without any custom configuration or wrapper components and has a perfect score on Custom Elements Everywhere. However, there are still a few quirks you need to watch out for, especially around …
The post Using Custom...
If we’re gonna criticize utility-class frameworks, let’s be fair about it
22.6.2021
I’m not here to raise a shield protecting CSS utility frameworks. I don’t even particularly like the approach, myself, and nothing is above fair criticism. But fair is a key word there. I can’t tell you how many times I’ve …
The post If we’re gonna criticize...
Are we in a new era of web design? What do we call it?
21.6.2021
Una is calling it the new responsive. A nod to the era we were most certainly in, the era of responsive design. Where responsive design was fluid grids, flexible media, and media queries, the new responsive is those things …
The post Are we in a new era of web design? What do we call...
How to Create CSS Charts With Interesting Shapes, Glyphs and Emoji
21.6.2021
Let’s forego the usual circles and bars we typically see used in charts for more eccentric shapes. With online presentations more and more common today, a quick way to spruce up your web slides and make them stand out is …
The post How to Create CSS Charts With Interesting Shapes, Glyphs...
Always Show Arrows for Number Input
21.6.2021
While I enjoy small details that make user interfaces more elegant, I also believe that less is more, especially when it comes to native behavior. One native behavior I dislike is that <input type="number" /> elements only show the increment and decrement arrows when the input is focused....
Be: The Fastest and Easiest Way to Build Your Portfolio Site
21.6.2021
You need to build a portfolio for your web design business, but are stressed about the time commitment. Don’t be. With the new and improved Muffin Builder, you can have it online ASAP.
The post Be: The Fastest and Easiest Way to Build Your Portfolio Site appeared first on Codrops
Using the `outline` Property as a Collapsable Border
18.6.2021
The outline property in CSS draws a line around the outside of an element. This is quite similar to the border property, the main exception being that outline isn’t a part of the box model. It is often used for …
The post Using the `outline` Property as a Collapsable Border appeared first...
Links on Typography
18.6.2021
I studied the fonts of the top 1000 websites. Here’s what I learned. — Michael Li brings the data. San-serif has total dominance. “[…] it is rare to go below 10px or above 24px.” And poor <h5> always being the
…
The post Links on Typography appeared first...