jQuery Scroll to ID


jQuery(document).ready(function(){
jQuery(".link").click(function() {
jQuery('html,body').animate({
scrollTop: eval(jQuery('#id').offset().top - 250)
}, 1000);
});
});

Comments

Popular posts from this blog

TypeScrpt basics

font-face HTTPS issue fixes