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
// Container element to add/remove class to | |
var container = $('body') | |
// this is the class that will be added to the body tag when the page is scrolled down | |
var scrollClass = "window-scrolled"; | |
// how far down the page needs to be scrolled for the class to be added | |
var positionTrigger = 10; | |
$(window).scroll(function (event) { |