Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery scroll to element id

$('.scroll').click(function() {
    $('body').animate({
        scrollTop: eval($('#' + $(this).attr('target')).offset().top - 70)
    }, 1000);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #scroll #element #id
ADD COMMENT
Topic
Name
4+1 =