StealThis .dev

Three Dots Menu

Mobile overflow menu triggered by a three-dots (kebab) button. Dropdown appears with action items and smooth fade-in animation.

Open in Lab
css vanilla-js
Targets: JS HTML

Code

Three Dots Menu

An overflow menu triggered by a three-dots (kebab) icon in the app bar. The dropdown appears with a smooth fade + scale animation.

Features

  • Three-dots button in the top app bar
  • Dropdown menu with action items
  • Fade + scale-in animation
  • Click outside to dismiss
  • Back arrow in header
  • Keyboard accessible (Escape to close)

How it works

  1. Three-dots button toggles .menu-open class
  2. Dropdown menu scales from scale(0.9) + fades in
  3. Menu positioned absolutely below the trigger button
  4. Click outside or Escape key closes the menu