Hello size coding fans. Today, I have something amazing to share: A tiny raycasting engine and city generator that fits in a standalone 256 byte html file. In this post I will share all the secrets…
Modern CSS Layouts: You Might Not Need A Framework For That — Smashing Magazine
It’s easy to get lost in a sea of CSS frameworks and libraries, each promising easier styling and smoother layouts. Brecht De Ruyte demonstrates four CSS utility classes (plus a bonus) using techniques that allow them to be used practically anywhere you need a particular layout — be it Grid or Flexbox — with configurable options.
The Classic Border Radius Advice, Plus an Unusual Trick – Frontend Masters Boost
When you nest elements with border-radius, the inner element needs less radius than the outer element.
This is some classic advice on this, and a future-looking fix.
Popover element entry and exit animations in a few lines of CSS | pawelgrzybek.com
Creating entry and exit animations for elements has always been tedious. Nowadays, we can do it with just a few lines of pure CSS, without a single line of JS.
Last week, Jeremy Keith wrote about what he calls HTML Web Components.
Some people treat Web Components like JS library components, where everything is rendered with JavaScript. But Jeremy has a different suggestion…
Try not to bring React’s mindset with you…
Think about composibility with existing materials. Do you really need to invent an entirely new component from scratch? Or can you use HTML up until it reaches its limit and then enhance the markup?
jgarber623/aria-collapsible: A dependency-free Web Component that generates progressively-enhanced collapsible regions using ARIA States and Properties.
A dependency-free Web Component that generates progressively-enhanced collapsible regions using ARIA States and Properties. - jgarber623/aria-collapsible
Combining CSS :has() And HTML select For Greater Conditional Styling — Smashing Magazine
Amit Sheen demonstrates using `:has()` to apply styles conditionally when a certain `` in a `` element is chosen by the user and how we gain even more conditional styling capabilities when chaining `:has()` with other pseudo-classes, such as `:not()` — no JavaScript necessary.