Module

FPO.UI.NavbarReveal

#setupNavbarReveal

setupNavbarReveal :: Int -> Effect Unit

Sets up the navbar auto-hide/reveal behaviour. The navbar is hidden initially and slides in once the user scrolls past threshold pixels. Call teardownNavbarReveal to undo all DOM changes.

#teardownNavbarReveal

teardownNavbarReveal :: Effect Unit

Removes the scroll listener and restores the navbar to its normal (always-visible) state. Safe to call even if setupNavbarReveal was never called.

Modules