Modern CSS Features That Replaced JavaScript

For years, whenever I wanted something interactive on a webpage, my first instinct was: