Episode 19 53 minutes

Modern CSS at Scale with Bramus

Key Takeaways from our conversation with Bramus Van Damme

Bramus Van Damme

Chrome Developer Relations Engineer at Google, CSS and Web UI Specialist

Seniors @ Scale host Neciu Dan is joined by Bramus Van Damme, Chrome Developer Relations Engineer at Google. As a leading voice in CSS and Web UI, Bramus dives into the future of the web, breaking down the mechanics, performance, and cross-browser status of transformative new features like View Transitions, Scroll-Driven Animations, Anchor Positioning, and Custom CSS Functions. He offers a rare look into the inner workings of Chrome DevRel, the standardization process through the CSS Working Group, and how the multi-browser 'Interop' effort is accelerating web development.

🎧 New Señors @ Scale Episode

This week, I spoke with Bramus Van Damme, a Chrome Developer Relations Engineer at Google, about how new CSS features are fundamentally changing the way we build user interfaces at scale.

Bramus has been building the web since the late 90s, when he first discovered "view source". He now sits at the intersection of web developers, Chrome engineers, and the CSS Working Group. In this episode, we unpack the new era of CSS features that are moving animations and complex UI patterns off of JavaScript and into the native platform.

⚙️ Main Takeaways

1. View Transitions create seamless, app-like experiences

View Transitions allow you to add rich animations when swapping between two different views of a website. This is done by identifying and morphing elements that appear on both the old and new pages, such as a movie poster growing from a thumbnail into a large photo on a detail page.

  • How it works: The browser calculates the delta between two states (DOM dips) and animates the change.
  • Best Practice: Don't overdo it. Respect the user's prefers-reduced-motion setting by using a crossfade instead of excessive sliding motion.
  • Framework Integration: Features like View Transitions required close contact with teams like React to ensure compatibility with their internal virtual DOM and batching logic.

2. Scroll-Driven Animations are natively performant

Scroll-Driven Animations (SDA) allow you to link an element's animation progress directly to the scroll offset of a container using only CSS.

  • Performance Advantage: Unlike traditional JavaScript scroll listeners, which run on the main thread and cause "jank", CSS-based SDAs run on the compositor thread (GPU).
  • Current Status: SDAs are now supported in Chrome and Safari (as of Safari 26).
  • What's Next: The successor feature, Triggered Animations, is in Chrome Canary. It allows time-based animations to run once you cross a specific scroll offset, supporting entry and exit animations.

3. Anchor Positioning is the CSS fix for Popovers and Tooltips

Anchor Positioning allows an element (like a popover or tooltip) to be tethered and positioned relative to a source element (the anchor) using only CSS. This removes the need for complex, manual JavaScript calculations.

  • Easy Positioning: Developers can use keywords like position-area: top span left to easily dictate the popover's position relative to the anchor.
  • Status: It's shipped in Chrome and Safari, with Firefox at 71.5% compliance as part of the Interop 2025 effort.

4. Custom CSS Functions and Mixins are turning CSS into a "true" programming language

The introduction of Custom Functions allows developers to build their own functions (prefixed with --) that accept arguments and return a single output value using a block of pure CSS.

  • Example: It allows for a custom light/dark function that works with any CSS value (not just colors) by using @media (prefers-color-scheme: dark) inside the function body.
  • Mixins: Mixins are the next step, allowing a function-like structure to return a bag of multiple properties. This core concept, borrowed from preprocessors like Sass, is now being natively built into the language.

5. Chrome DevRel and Interop are driving cross-browser consistency

Bramus’s role in Developer Relations (DevRel) acts as a translator, voicing the needs of web developers (gathered from surveys like the State of CSS and conferences) to the Chrome engineering teams.

  • The Interop Effort: Interop is a collaboration between browser vendors (Chrome, Safari, Firefox) to prioritize and ensure consistent, high-quality implementations of key platform features across all engines.
  • Prioritization: Feature work is largely driven by the voice of authors. For example, the long-standing difficulty of styling forms (like the <select> element) led to the development and implementation of the customizable select and, later, specifications for easier styling of all form controls.

🧠 What I Learned

  • Jank avoidance is the primary driver for new CSS animation features. Any animation involving non-geometric changes (like opacity or transform: scale) can run on the compositor, but changes to width and height currently force the animation onto the main thread.
  • The concept for View Transitions was being incubated for over five years, with the idea of shared transitions first discussed around 2016-2018.
  • Bramus's coolest demo combined Scroll-Driven Animations with View Transitions by starting the transition, then pausing its underlying CSS animations, and finally mapping the scroll position delta to control the animation's progress time.
  • Developers should be vocal about missing or difficult platform features, as DevRel relies on this feedback (complaints, demos, blog posts) to champion new standards to the CSS Working Group.

💬 Favorite Quotes

"You swap out my Lego bricks for HTML bricks basically back then."
"Sometimes one declaration can replace 20 lines of JavaScript code or maybe 200 lines of JavaScript code."
"View transitions will automatically morph from the one thing to the other thing."
"If your browser doesn't support scroll-driven animations, well, you just get the thing without the scroll-driven animation. I think this is like a perfect progressive enhancement."
"The key benefit of using scroll-driven animations in CSS... is that they are built on top of CSS animations and web animations. And those animations, they know how to run stuff on the compositor."
"The web always catches up."

🎯 Also in this Episode

  • Bramus's start in web development in the late 90s using Notepad.
  • The power of CSS Selectors (including :has(), :not(), and :nth-child()).
  • The time it takes for a feature to land across all browsers (from 3 months up to 10 years).
  • The timeline of the customizable select feature (over six years of incubation).
  • Why width and height animations often run on the main thread and how Chrome is optimizing this.
  • Triggered Animations (the logic successor to SDAs) that run a time-based animation once a scroll boundary is crossed.
  • The new CSS inline if() function that aids in building custom functions.

Resources

More from Bramus:
Bram.us (Bramus's Blog)
Scroll-Driven Animations Course
Scroll-Driven View Transition Demo (on CodePen)
Talk on Scroll-Driven View Transitions

Tools and Colleagues:
Anchor-Tool.com (by Una Kravets)
Una Kravets' Blog
Adam Argyle's Blog
Piccolill.li (Blog recommendation)
WPT.FYI (Web Platform Tests dashboard for Interop)

🎧 Listen Now

🎧 Spotify
📺 YouTube
🍏 Apple Podcasts

Episode Length: 53 minutes on the native browser features that are replacing JavaScript for UI, performance, and cross-browser consistency.

Happy building,
Dan

💡 More Recent Takeaways

State Management at Scale with Daishi Kato (Author of Zustand)
Episode 21

Señors @ Scale host Neciu Dan sits down with Daishi Kato, the author and maintainer of Zustand, Jotai, and Valtio — three of the most widely used state management libraries in modern React. Daishi has been building modern open source tools for nearly a decade, balancing simplicity with scalability. We dive deep into the philosophy behind each library, how they differ from Redux and MobX, the evolution of the atom concept, and Daishi's latest project: Waku, a framework built around React Server Components.

Domain Driven Design at Scale with Vlad Khononov (O'Reilly and Pearson Author)
Episode 20

Señors @ Scale host Neciu Dan sits down with Vlad Khononov, software architect, keynote speaker, and author of Learning Domain-Driven Design and Balancing Coupling in Software Design. Vlad has spent over two decades helping teams untangle legacy systems, rebuild failing architectures, and bring clarity to messy business domains. This conversation cuts through the hype around DDD and microservices, focusing on the mechanics of bounded contexts, coupling, business alignment, and architectural evolution.

Security at Scale – With Liran Tal (Snyk)
Episode 18

Señors @ Scale host Neciu Dan sits down with Liran Tal, Director of Developer Advocacy at Snyk and GitHub Star, to unpack NPM malware, maintainer compromise, MCP attacks, toxic flows, and why AI-generated code is statistically insecure without the right guardrails. Liran shares real incidents from the Node and open source ecosystem, how Snyk and tools like NPQ help developers build safer workflows, and why security at scale starts with developers, not firewalls.

Micro-Frontends at Scale (Part 2) – With Luca Mezzalira (AWS)
Episode 17

Señors @ Scale host Neciu Dan sits down with Luca Mezzalira, Principal Serverless Specialist at AWS and author of *Building Micro-Frontends*, to unpack how he helped scale DAZN’s frontend from 2 developers to 500 engineers across 40 devices. Luca shares the origin of micro-frontends, how to build stable application shells, implement zero global state, use guardrails for bundle budgets, and manage migrations at scale through edge routing and team autonomy.

1 hour 10 minutes 📖 Read Takeaways

📻 Never Miss New Takeaways

Get notified when new episodes drop. Join our community of senior developers learning from real scaling stories.

💬 Share These Takeaways

Share:

Want More Insights Like This?

Subscribe to Señors @ Scale and never miss conversations with senior engineers sharing their scaling stories.