Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

smooth link to anchor js

jQuery(document).ready(function($) {
					var $page = $('html, body');
					$('a[href*="#"]').click(function() {
						$page.animate({
							scrollTop: $($.attr(this, 'href')).offset().top-50
						}, 600);
						return false;
					});
					});
 
PREVIOUS NEXT
Tagged: #smooth #link #anchor #js
ADD COMMENT
Topic
Name
1+1 =