Direct link to the article Worlds Collide: Keyframe Collision Detection Using Style Queries

Worlds Collide: Keyframe Collision Detection Using Style Queries

Interactive CSS animations with elements ricocheting off each other seem more plausible in 2025. While it’s unnecessary to implement Pong in CSS, the increasing flexibility and power of CSS reinforce Lee’s suspicion that one day it will be a lifestyle choice whether to achieve any given effect with scripting or CSS.

Lee Meyer on

Latest Articles

Direct link to the article Revisiting CSS border-image

Revisiting CSS border-image

I’ve used border-image regularly. Yet, it remains one of the most underused CSS tools, and I can’t, for the life of me, figure out why. Is it possible that people steer clear of border-image because its syntax is awkward and unintuitive? Perhaps it’s because most explanations don’t solve the type of creative implementation problems that most people need to solve. Most likely, it’s both.

Andy Clarke on
Keep browsing in the archives

Quick Hits

Masonry in CSS: There’s a new, third option in the debate that combines Flexbox and CSS Grid features into a new system of “Item Flow” properties. The WebKit blog has all the gory details.

#

Ooo, look at that: Safari Technology Preview 215 adds support for scroll-driven animations, anchor positioning, and text-wrap: pretty. That’s a good sign that other versions of Safari are on the horizon!

#

Smashing Magazine is hosting a free online event discussing modern CSS goodness with the likes of Adam Argyle, Julia Miocene, and Miriam Suzanne this — no joke! — April 1. Get yer tickets!

#

The CSSWG has voted to add a size keyword that’s shorthand for the width and height properties.

#
More Quick Hits →

Collections

Classic Tricks

Timeless CSS gems

Latest CSS Guides

Dive deep into CSS features and concepts

Fresh From the Almanac

Properties, selectors, rules, and functions!