Created
March 28, 2018 16:21
-
-
Save eclarrrk/14403dcc6ea89dee0bf753a9879f601c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// must come after wp_footer(); | |
var elem = document.querySelector("#masthead"); | |
var headroom = new Headroom(elem, { | |
"offset": 100, | |
"tolerance": 8, | |
"classes": { | |
"initial": "headroom", | |
"pinned": "headroom--is-pinned", | |
"unpinned": "headroom--is-hidden" | |
} | |
}); | |
headroom.init(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment