Skip to content

๐Ÿ—„๏ธ Navigation drawer Implemented with HTML and CSS only.

Notifications You must be signed in to change notification settings

vpodk/navigation-drawer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Navigation drawer

Key points

  • Hidden <input type="checkbox"> as a toggle;
  • Fullscreen <label> element for veil;
  • Google Material spec for sizes, animations, and colors.

Accessibility

Implemented with HTML and CSS only, but for A11y it uses few lines of JavaScript:

  • Support keyboard navigation (Esc and Enter);
  • Prevents page scrolling when the navigation drawer is open.

TODO

  • Only what's missing is the focus bounder :)

Demo https://vpodk.github.io/navigation-drawer/