The Shifting Line Between CSS States and JavaScript Events
SMRTR summary
CSS is quietly gaining pseudo-classes that mimic JavaScript event listeners — covering hover, focus, validation, media states, popovers, fullscreen, and more. The upcoming `event-trigger` spec takes this further by letting CSS animations respond directly to DOM events like clicks and keypresses, without any JavaScript at all.
SMRTR provides this summary for quick context. The original article belongs to CSS-Tricks.
Read the original article