Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var viewportWidth = $(window).width();
- var viewportHeight = $(window).height();
- $(window).resize(function() {
- if(viewportWidth > 991) {
- $(window).scroll(function(){
- if ($(this).scrollTop() > 610) {
- $('.scrollnav').show();
- } else {
- $('.scrollnav').hide();
- }
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement