Skip to content

24 ways to impress your friends

Vote down?

Andrew Hedges

All the hand wringing over whether animations belong in CSS is understandable, but I think folks are missing an important point: the visual effects are defined in the CSS, but the behaviors are often (or at least can be) triggered by JavaScript.

It’s a gray area, surely. E.g., you can trigger an animation using the :hover pseudo-selector. But, the way it’s defined at present, you are free to maintain the separation of presentation and behavior if you want.

@Paul, +1 on the recommendation for Modernizr. I only found it last week, but it’s already an indispensable tool in my kit.