Skip to content Skip to sidebar Skip to footer

Smooth Scrolling With Jquery

I know there are questions about smooth scrolling on SF already but I am unable to find what I want. Already used improved smooth scroll script but it's the one on this website htt

Solution 1:

$('a').click(function(){
    var top = $('body').find($(this).attr('href')).offset().top;
    $('html, body').animate({
        scrollTop: top
    },500, 'easeOutExpo');

    return false;
});

Then select the easing you want https://matthewlein.com/experiments/easing.html


Post a Comment for "Smooth Scrolling With Jquery"