CSS can now do what only JavaScript used to: what it means for designers
When I read the conclusion of this year's State of CSS survey a few weeks ago, one idea stuck with me: what JavaScript used to do, CSS can increasingly do on its own. For designers that is great news, and a good reason to sit down with your developer and revisit what is "expensive" and what is "almost free".
What actually changed
CSS is the language that describes how a website looks: colors, spacing, typography. For a long time, anything "alive" – a smooth transition between pages, a tooltip that moves itself when it would overflow the screen, color mixing – required JavaScript. That meant more code, more bugs and a slower site.
Today browsers ship their own tools for these things. View Transitions give you animated page-to-page transitions in a few lines. Anchor positioning keeps pop-ups attached to their target. CSS can mix colors itself, so button shades and hover states can be derived from a single brand color.
What this means for your design
Animations that used to get a "that'll be complicated" are suddenly cheap. A smooth transition from a product card to its detail page? Once a multi-day job, now often an afternoon. Results are faster too: less JavaScript means quicker loading, which users and Google both appreciate.
That does not make everything free. Custom interactions with no browser support still cost time. The difference is that the line between "easy" and "hard" has moved – and your intuition from a few years ago may no longer match reality.
Design tools are moving closer to code
Figma is heading the same way. At Config 2026 it introduced Code Layers, which turn a design layer into interactive code with one click, and Figma Motion, with a timeline and keyframes whose animations can be exported to CSS or React, among other formats. Keep expectations realistic though: exported code is a great prototype and communication tool, but rarely finished production code. A developer still has to fit it into the real project, add accessibility and test it across devices.
Three tips for smoother collaboration
First, show your developer the animation as a reference (a video or Figma Motion) and ask how best to build it – sometimes there is a simpler route to the same feel. Second, design the states: hover, focus, empty and error. Third, ask "what makes this expensive?" instead of "is it possible?". It almost always is; the question is the price.
Conclusion
The web gets a little more willing to do what you imagine every year. The best collaboration happens when designers know the basic possibilities and developers happily explain where the real limits are. Next week we'll tackle another favorite question from your world.