Smooth scroll ( .home .scroll-down )

houarim
Offline
Last seen: 6 months 1 week ago
Thu, 11/26/2015 - 02:11
#1
Smooth scroll ( .home .scroll-down )

Hi,

I have noticed that on your demo when you click on the white mouse ( .home .scroll-down ) , it scrolls smoothly to the next section.

I have just purchased and downloaded your template, however, it doesn't scroll down smoothly, it jumps there.

How can we set it so it goes smoothly from the landing page to the next section?

Thank you very much!

cindy
cindy's picture
Offline
Last seen: 2 days 13 hours ago
Thu, 11/26/2015 - 10:18

Hi,

Please open file jquery.custom.js and add the following code at the bottom of the file:


$(".scroll-down").click(function(){
        $("html,body").animate({scrollTop:$("#about").offset().top},"slow");
        return false;
    });

 #about is the id of section, where you want to go to when click on .scroll-down

Log in or register to post comments