Links
Is the sticky thing stuck? Is the snappy item snapped? A look at state queries in CSS
Excited to finally explore CSS state queries and Scroll Snap events. This article will showcase initial impressions and demos using these features.
Masonry and good defaults
Good defaults make things easier to teach. So the initial behaviour of Flexbox putting all your things in a row is a great starting point for whatever you might want to do. I want to be able to take the same approach with display: masonry.
Making Orbit Animations with CSS Custom Properties
Let’s animate some CSS custom properties! This is a powerful way to approach CSS animations that would otherwise be tedious or impractical to implement.
Selecting Previous Siblings
Selecting the next element in CSS can be done easily with the
+
combinator. Selecting the previous element used to be impossible, but now can be like:has(+ .el)
, and can be extended in either direction.
SVG Coding Examples: Useful Recipes For Writing Vectors By Hand
Myriam Frisano explores the basics of hand-coding SVGs with practical examples to demystify the inner workings of common SVG elements. In this guide, you’ll learn about asking the right questions to solve common positioning problems and how to leverage JavaScript so that, by the end, you can add “SVG coding” to your toolbox. You’ll also be able to declare proudly, “I know how to draw literal pictures with words!”
Videos
How to Teach CSS
I really like CSS, and it makes me sad that this sentiment is so rare amongst front-end / full-stack developers! For the past few years, I've been on a mission to change this, helping thousands of developers discover the joy of writing CSS. In this talk, we’ll explore some of the mental models and analogies that make CSS click, so you can upskill your JavaScript-focused peers and get them excited about CSS.
Sponsor
Sponsored by Cloud Four
Thanks to Cloud Four for sponsoring this week’s newsletter! They solve complex responsive web design and development challenges for ecommerce, healthcare, fashion, B2B, SaaS, and nonprofit organizations.
If you’d like to help with the costs of running Friday Front-End, you can back our Patreon for as little as a dollar a month.