Vili Ketonen

Home Posts
Go to Vili's GitHub profile
  • Native-like bottom sheets on the web: the power of modern CSS

    Oct 30, 2025

    With modern web features like CSS scroll snap, it is now possible to create native-like bottom sheets featuring multiple snap points and nested scrolling – with close to zero JavaScript – by leveraging the browser's own scrolling functionality. This approach delivers the smoothest possible user experience while also making it easy to leverage built-in accessibility support through native HTML native HTML dialog and Popover API. These capabilities inspired pure-web-bottom-sheet, a lightweight, framework-agnostic web component that delivers native-comparable performance and responsive behavior for the bottom sheets.

© 2025 Vili Ketonen. All rights reserved.
Go to Vili's GitHub profile