×

Welcome to TagMyCode

Please login or create account to add a snippet.
1
0
 
0
Language: Javascript
Posted by: Nicole Patten
Added: Feb 4, 2016 9:15 PM
Views: 37
  1.         $(window).scroll(function(){
  2.        var leftToBottom = $(document).height() - $(window).height() - $(window).scrollTop();
  3.        var distanceFromTop = $(window).scrollTop();
  4.        if( distanceFromTop > 1300) {
  5.             $(".left-fixed-sidebar").fadeIn();
  6.        } else if (distanceFromTop < 1300){
  7.                 $(".left-fixed-sidebar").fadeOut();
  8.        }
  9.         });

1 comment

Joel DEV 1 year ago
Nice

Write a comment