Skip to content Skip to sidebar Skip to footer

Javascript - "scroll Down" Button - Scroll From Landing Page To Top Of The Header

I'm using the same 'scroll down' method that's being used here: https://codepen.io/nxworld/pen/OyRrGy Of course, the JavaScript in that example doesn't take you to a specific place

Solution 1:

The target of your link is #section5 it should be #menu-main Hope this helps.

EDIT If you want to scroll try this

$('#section5').click(function (e) {
    e.preventDefault();
    $('html, body').animate({
        scrollTop: $("#menu-main").position().top
    }, 1000);
});

SYA :)

Post a Comment for "Javascript - "scroll Down" Button - Scroll From Landing Page To Top Of The Header"