Sticky navigation header demo (stand-alone)

The full Sticky header article.

All required files are annotated and self-contained within this page.

Scroll up and down the page varying both precision and speed.

Thinking: display original and visibility hidden the clone. That is the clone reserves the space. Saves copying any event listeners across.