Skip to content

klazich/unheader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unheader

https://klazich.github.io/unheader/

An example of how to use the scrollY event to trigger actions on elements. In this case, unpinning the header/nav when scrolling down and pinning it back when scrolling up.


This started out as a repo to test some ideas and it needs a lot of housecleaning.


About

The number in the red box is a count of scroll events fired since the page loaded. The blue box is the classList on the <header> element updated when on scroll events.

Local Development

  1. Clone the repo and cd into it...
$ git clone https://github.com/klazich/unheader.git
$ cd unheader
  1. Install the packages by running: yarn or npm install

  2. unheader uses Gulp and Postcss to build development and production files. BrowserSync with Gulp watch is used to serve and reload development builds.

    To start the development server run...

    $ yarn start
      or
    $ npm start

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published