&gt; <i>What animations have to do with styling and layout?</i><p>What don&#x27;t they have to do with it? CSS is all about defining the way the site looks. Animations, and especially transitions between states, is the exact same thing. Animations are just layout plus time.