Every few months I go back through an old project and find a chunk of JavaScript solving a problem that CSS now solves on its own — a resize listener recalculating an aspect ratio, a scroll handler smoothing out anchor links, a canvas hack blurring a background. None of it was bad code when it w...

Source: [Dev.to](https://dev.to/_artclick/10-css-properties-that-quietly-deleted-my-javascript-2m3b)

Sponsored