English
About this handbook

This handbook belongs to the Quartz plugin quartz-navigations. And it is built with it: the menu above and the previous/next links below every text come from there.

What the entries behind them look like is explained in 8.1.

5.3 – Without JavaScript

The navigation is finished HTML when it arrives in the browser. The script adds things but changes nothing the structure relies on.

What works without the script

WhatWith what
All links, active page, active pathwritten at build time
Expanding and collapsing folders<details> and <summary>
Menus of dropdown, mega, flyout by clickalso <details>
One folder per level (exclusive)the name attribute of <details>
Opening and closing the mobile menu behind the burger buttona checkbox and CSS
Switching at the mobile breakpointmedia queries

What the script adds

WhatWithout the script
persistStatenothing is remembered
trigger: hovermenus only open by click
Closing menus on a click elsewhere, Escape, page changethey stay open until their folder is clicked again
Moving panels and lifting them out of columnspanels can stick out of the window or be cut off
Holding the page still behind the mobile menu, Escapethe page scrolls along
Navigating with select and mobile: selectthe menu does nothing
Closing folders that only expand on mobile on smartphonesthey stay open
Open animationfolders open without transition
Scrolling the active page into view in a long sidebarit stays where it is

Why the animation needs the script

Folders that are already open on load — the active path, a remembered state — should not slide open on every page change. The animation is therefore tied to an attribute that the script only sets when someone touches the folder for the first time. Without the script there is no attribute, and without the attribute no animation.

Anyone who has reduced motion in their operating system (prefers-reduced-motion) gets none anyway.