Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add and remove on header fixed
- function stickyMenu(){
- var scroll = $(window).scrollTop();
- if (scroll >= 65) {
- $('.header').addClass('header--fixed');
- }
- else {
- $('.header').removeClass('header--fixed');
- }
- }
- $(window).on('scroll', function() {
- stickyMenu();
- })
Add Comment
Please, Sign In to add comment