Taking Eleventy into the Spiderverse with eleventy-fetch
Let’s walk through the specifics of how to utilize the @eleventy/eleventy-fetch plugin to retrieve data from an API and use it in an Eleventy generated site.
A Guide To Accessible Form Validation — Smashing Magazine
Each time we build a field validation from scratch, accessibility doesn’t come out of the box. In this guide, Sandrina breaks down what we need to take into consideration, so that nobody gets stuck on an inaccessible invalid field.
Simplified Dark Mode With Style Queries | Stephanie Eckles
Supporting both the user preference query for dark mode as well as a toggle previously required duplicated style blocks. With the incoming style queries feature, we can simply down to reading a custom property to define theme styles once.
Easing curves, and better CSS transitions and animations - Josh Collinsworth blog
The difference between a smooth, sleek animation and one that feels bland and generic is often in the easing curve. Let's look at what easing curves are and how they work in CSS, before diving into tips for making the best web animations possible.
Building a lightbox with the Dialog element | Polypane, The browser for ambitious web developers
The dialog element lets you overlay content on top of your site in something called the "top layer", which is a special layer that sits above all other content. This way you never have to worry about your dialog being…
Henry From Online | Using Focal Points, Aspect Ratio & Object-Fit To Crop Images Correctly
CSS has a lot of pretty rad and powerful features for managing image rendering these days. Let’s leverage some of these, like aspect-ratio, object-fit, and object-position for when we need to use a single image in many different contexts.
Generated content (the ::before and ::after pseudo-elements) is quite handy for styling elements without disrupting markup. We can use it for creating things like custom checkboxes without any extra elements.
https://codepen.io/MrRoboto/pen/OJxaGyb
...
How to add client-side search with PageFind to your Astro blog static website
PageFind client-side search for Astro is simple but if you want to add search capabilities to a personal blog then you might think of Algolia first. However, let me show you how an easy PageFind integration would be more suitable for a static-site generation type of blog tech.
Responsive Video Poster - Responsive poster image for videos
Video elements only allow specifying one image as the poster, which is not optimal for performance. This JavaScript plugin uses a standard image tag as the poster. This means standard responsive image techniques can be used to load only the most appropriate image. This also gives full styling control of video placeholders. Performance optimizations are also included for loading of both native and embedded videos.
Building a stylish Masonry layout using CSS and JavaScript
Effectively rendering huge amounts of data on a website can be a challenging problem. I'll show you how to use the masonry pattern to not only deal with this challenge, but to do it while looking stylish.