Modernizing the Pinterest carousel: 90% less code with native CSS @ChromeDevs
Modernizing the Pinterest carousel: 90% less code with native CSS  @ChromeDevs
Uploaded March 2026 | Updated November 2026, 3 hours ago
How do you build a web that inspires 600 million users? At Pinterest, the "Close Up" experience is core to how users discover ideas. But over time, the JavaScript powering carousel experience became a patchwork of 2,000 lines of code—resulting in noticeable lag and "jank" for users.

In this video, Pinterest engineers Calvin and Anuja walk through how they swapped legacy JavaScript for modern CSS carousels and View Transitions. The results? A 90% reduction in code, a 15% improvement in page load time, and a smoother, native-feeling UI.

Chapters:
[0:07] Inspiring 600 Million Users
[0:10] Meet the team: Engineering at Pinterest
[0:21] The legacy carousel: 2,000 Lines of JavaScript
[0:49] The Experiment: Converting to CSS carousel
[1:22] Results: 90% less code, 15% less load time.
[1:36] Scaling success everywhere
[2:03] View Transitions: Smooth animations are now possible

📚Resources:
Make accessible carousels → https://goo.gle/4aTpGtc
Carousels with CSS → https://goo.gle/3YuWhOv
Scoped View Transitions → https://goo.gle/3XuZMUX
View Transition API → https://goo.gle/3MzVngY
Watch more “Re-Imagine the web” → https://goo.gle/re-imagine-the-web
Subscribe to Chrome for Developers → https://goo.gle/ChromeDevs

#Chrome #Pinterest #webui

Products Mentioned: Chrome, Pinterest, web platform, web development, CSS, CSS carousels, CSS primitives, View Transitions
Modernizing the Pinterest carousel: 90% less code with native CSSHow This Chrome Extension Got 25% Annual SubscribersDont let AI agents push your buttons - use webMCP instead!Chrome: Browsing, building, and web in the AI eraHow to protect Chrome extension code and API keysSimplify complex user intents with WebMCP #GoogleIONew workflows for improved web app quality: Modern Web Guidance and DevTools (I/O Connect 26)CSS Wrapped 2025: All the new CSS and Web UI features that landed in Chrome in 2025A global team bringing you the future of the webRegister for #GoogleIO today and unpack all the news our team is bringing to build a better webOffline vector search with SQLite and EmbeddingGemma97: Invokers and commands
Chrome for Developers |

Modernizing the Pinterest carousel: 90% less code with native CSS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER