Skip to content

Bottom Sheet Mobile Menu

Dark mobile app menu that slides up from the bottom as a rounded sheet with a drag handle, quick action tiles, scrim, focus trap and swipe to close.

Also known as: mobile bottom sheet, bottom navigation menu, slide up menu, mobile app menu

Bottom Sheet Mobile Menu live demo

Open in new tab

Pure CSS code (HTML, CSS, JS)

A dark mobile navigation menu that slides up from the bottom of the screen as a rounded sheet, built with pure CSS and vanilla JavaScript. A lime menu button in the tab bar opens the sheet with a drag handle, a grid of quick action tiles and a short list of secondary links. It suits banking, delivery and other app-like mobile web interfaces where a thumb-friendly menu works better than a top hamburger drawer.

How it works

The demo wrapper .bsm-demo centers a phone-sized .bsm-app shell that contains a .bsm-topbar, scrollable .bsm-content, the .bsm-tabbar with the .bsm-trigger button, a .bsm-scrim and the .bsm-sheet dialog. The sheet is positioned at the bottom of the shell and moved out of view with transform: translateY(100%). When .bsm-app has the class is-open, the sheet slides to translateY(0) and the scrim fades in. visibility is switched after the transition, so a closed sheet cannot receive focus.

Inside the sheet, .bsm-grabber is a sticky header with the .bsm-handle bar and the title. The .bsm-grid holds six .bsm-tile links with inline SVG icons (one with a .bsm-badge), followed by .bsm-links rows.

The script works per .bsm-app. Clicking the trigger opens the sheet and focuses the first control; anything with data-bsm-close (the scrim and the close button) closes it, and Escape does the same. Tab and Shift+Tab are kept inside the sheet, the rest of the shell is made inert, and focus returns to the trigger on close. Pointer events on .bsm-grabber let you drag the sheet down; releasing past 30 percent of its height (CLOSE_DISTANCE) closes it, otherwise it snaps back.

Customization

  • --bsm-accent and --bsm-accent-ink on .bsm-demo: the lime color of the menu button, icons and badge, and the text drawn on top of it.
  • --bsm-surface and --bsm-surface-2: background of the sheet and of the tiles.
  • --bsm-speed: slide and fade duration, e.g. 0.25s for a snappier sheet.
  • --bsm-radius: the top corner radius of the sheet.
  • --bsm-scrim: color and opacity of the dimmed backdrop.
  • Remove is-open from .bsm-app and set aria-expanded="false" on .bsm-trigger so the menu starts closed.
  • grid-template-columns in .bsm-grid: use repeat(4, 1fr) for a denser tile grid.
  • CLOSE_DISTANCE in script.js: how far the sheet must be dragged before it dismisses.

Use cases

  • Banking apps: a tab bar menu button opens a dark sheet with quick action tiles
  • Delivery and ordering apps: thumb-friendly tiles and secondary links slide up from the bottom
  • Mobile web apps: a drag handle and swipe down let users dismiss the menu naturally
  • Progressive web apps: an app-like menu with a focus trap replaces a top hamburger drawer

Accessibility

The sheet has role="dialog", aria-modal="true" and aria-labelledby pointing to its heading. The trigger exposes aria-expanded and aria-controls, and has a visually hidden label. Focus is moved into the sheet, trapped there while it is open and returned to the trigger afterwards; Escape closes it. The current tab uses aria-current="page", and every link and button gets a lime focus outline. With prefers-reduced-motion: reduce the sheet and scrim appear without animation.

Usage notes

The demo starts open so the sheet is visible in the preview. In a real app make .bsm-app your full-height layout wrapper (for example --bsm-app-height: 100dvh); below 420px the phone frame is removed automatically. Without JavaScript the sheet stays in its markup state, so ship the script with it.

Bottom Sheet Mobile Menu at a glance

Framework
Pure CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
None
Layout
Responsive, works on mobile, dark design
Category
Mobile Menus
License
Free for personal and commercial use

Questions about this template

Can I use the Bottom Sheet Mobile Menu code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

There is nothing to install. Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Does it work on mobile?

Yes. The layout adapts to small screens. Use the Mobile and Tablet buttons above the live demo to check it at phone and tablet width.

Requirements

No dependencies. Pure HTML, CSS and JavaScript.

Bottom Sheet Mobile Menu – free Pure CSS mobile menu template
Bottom Sheet Mobile Menu · free Pure CSS mobile menu template

More Mobile Menus

Full-Screen Overlay Mobile Menu – free Pure CSS mobile menu template

Full-Screen Overlay Mobile Menu

Hamburger button that opens a full-screen menu with a circular clip-path reveal, staggered serif links, focus trap and Escape to close, in pure CSS and vanilla JS.

Slide-In Mobile Menu – free Tailwind CSS mobile menu template

Slide-In Mobile Menu

Tailwind CSS off-canvas mobile menu that slides in from the left with a backdrop, focus trap, Escape to close and an expandable submenu.