NavigationDropdown Menu
A menu button that opens a list of actions, with arrow keys, Home, End, type-ahead, Escape and a click outside, written without a library.
Ready-to-use HTML, CSS and JavaScript with a live preview. Copy the code or open any snippet in the playground.
28 snippets · page 3 of 3
NavigationA menu button that opens a list of actions, with arrow keys, Home, End, type-ahead, Escape and a click outside, written without a library.
UtilitiesA switch between light and dark that follows the system setting until the visitor chooses, and remembers the choice where storage is allowed.
MediaA row of slides that snaps into place with CSS only and moves by touch, wheel, keyboard or jump links, with no script.
LayoutA site footer with a short brand note, four groups of links that wrap from four columns to two to one, and a bottom bar with a back-to-top link.
Try our online code playground to experiment with these snippets and create your own projects.