blob: 6e7080a5272560aab4364ceb5c526fc12f7f6d74 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001<!DOCTYPE html>
2<html>
3<head>
4 <include src="include/_head.html"></include>
5 <title>Material Design Lite Extensions - Sticky Header</title>
6</head>
7
8<body>
9<div class="mdl-layout mdl-js-layout mdl-layout--fixed-drawer mdl-layout--fixed-header">
10 <include src="include/_header.html"></include>
11 <include src="include/_drawer.html"></include>
12 <main id="mount" class="mdl-layout__content">
13
14 <h5>Sticky Header, Fixed Drawer Example</h5>
15
16 <p>A sticky header makes site navigation easily accessible anywhere on the page and saves content space at the same.</p>
17 <p>The header should auto-hide, i.e. hiding the header automatically when a user starts scrolling down the page
18 and bringing the header back when a user might need it: they reach the bottom of the page or start scrolling up.</p>
19 <p class="mdl-typography--subhead">To see how the sticky header works, click the button a few
20 times to add content. Next scroll the page up and down.</p>
21 <button id="a-button" class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent">
22 Click to add more content
23 </button>
24 </main>
25</div>
26<include src="include/_scripts.html"></include>
27<include src="include/_interactive-body-filler.html"></include>
28</body>
29</html>