position:fixed navigation stop at end of specific div - parallax scrolling & javascript
问题 I have a vertically oriented vertical navigation bar, that I would like to make stop at the end of #contact . It will need to resume scrolling again if the user scrolls back up. What is the best way to achieve this? javascript being used: $(function() { $.fn.scrollBottom = function() { return $(document).height() - this.scrollTop() - this.height(); }; var $el = $('#nav>div'); var $window = $(window); var top = $el.parent().position().top; $window.bind("scroll resize", function() { var gap =