Google for Developers reposted this
Pinterest shifted to native CSS carousels by integrating new primitives—including scroll buttons, scroll markers, scroll snap, and styleable fragmentation—to create smooth and more performant experience → https://goo.gle/4cZR6Pk By prioritizing new CSS carousel over legacy JavaScript, the team achieved: 90% reduction in codebase complexity (2,000 lines of JS → 200 lines of CSS) ✂️ 15% improvement in page load times 🚀 Smoother, native-feeling interaction 🌐 Beyond these wins, Pinterest is also experimenting with the View Transition API to further evolve their UI. This is a great example of how using modern CSS can reduce technical debt while improving the user experience.