Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/g105b/elegant-header

My take on the scroll-up-to-reveal website header
https://github.com/g105b/elegant-header

Last synced: 21 days ago
JSON representation

My take on the scroll-up-to-reveal website header

Awesome Lists containing this project

README

        

elegant-header
==============

My take on the scroll-up-to-reveal website header

662 bytes gzipped (1.56KB uncompressed)

Features
--------
* [x] Adds a 'padding' element adjacent to the original header element, with identical height.
* [x] Sets the original header's position to `fixed`.
* [x] Moves the `top` offset of the header in relation to the scroll amount.
* [x] Fades the header out as it is hidden.
* [x] Adds a subtle box shadow when the header is displayed anywhere other than its original location at the top of the page.
* [x] Uses a timeout to cancel any half-scrolled headers after a second or two.