The Headroom plugin responds to page scrolling. For example, the app bar disappears when scrolling down and reappears when scrolling up.
Instantiate the plugin:
selector is a CSS selector or a DOM elementoptions are the parameters for the plugin, see the parameter list below
Distance scrolled before triggering element hiding.If the parameter value is a number, it means the trigger distance for scrolling up and down is the same.
<link rel="stylesheet" href="https://unpkg.com/mdui@1.0.2/dist/css/mdui.min.css"><script src="https://unpkg.com/mdui@1.0.2/dist/js/mdui.min.js"></script>