Skip to content

Tag: CSS

All the articles with the tag "CSS".

2025

The View Transition API

Published on

Learn how to create smooth cross-document and single-page transitions using the new View Transition API. This comprehensive guide covers CSS animations, JavaScript implementation, staggered effects, and framework support with practical examples.

Light and Dark Scheme for Modern Websites

Published on

Learn how to implement dark and light modes on your website using pure HTML and CSS—no JavaScript required! This guide covers automatic color scheme switching based on the user's system preferences, custom toggles with JavaScript, storing preferences in local storage, and best practices for Astro sites.

2023

The Taxing Road to Responsive Images

Published on

Todays browsers support responsive images out of the box and for the best user experience it is necessary to serve images responsively. It's not trivial to implement a more advanced solution. This is the story about why and how I serve a multitude of formats and sizes for images on this blog.