Skip to content
A fixed header that will animate its size on scroll.
HTML CSS JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
js
test
.gitignore
LICENSE
README.md
bower.json

README.md

animated-header.js

A fixed header that will animate its size on scroll.

This is a modification of the Codrops' version. It use the jQuery instead of the deprecated classes.js.

Usage

  1. Add the animated-header class to the header element, for example:
  <nav class="nav-default animated-header">
   ...
  </nav>
  1. When the user scroll down the header, the header element will be added with the class animated-header-scroll. Therefore, you could use CSS to style the scrolled header.
  2. Check the following article for the implementation details and demos: On-Scroll Animated Header
Something went wrong with that request. Please try again.