Created
April 18, 2019 17:58
-
-
Save hborrelli1/5316b17d92c450c0c975fb86d2102025 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
<script type="text/javascript"> | |
// Scroll bar Process Page | |
var elementPosition = jQuery('#stepNumber').offset(); | |
jQuery(window).scroll(function () { | |
if(jQuery(window).scrollTop() > 400) { | |
jQuery('#stepNumber').addClass('fixed-number'); | |
} else { | |
jQuery('#stepNumber').removeClass('fixed-number'); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment