S
S
snake_jan2016-03-31 10:14:49
JavaScript
snake_jan, 2016-03-31 10:14:49

A detailed way to "kick" from the header when scrolling with the mouse?

Please tell me a detailed simple method for implementing this feature:
Cap-picture in full screen. It is necessary that with one scrolling with the mouse, the screen passes strictly under the picture header.
Many thanks in advance and +100500 to karma :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cyber_bober, 2016-03-31
@Cyber_bober

$("a.scrolllink").click(function() {
        $("html, body").animate({
            scrollTop: $($(this).attr("href")).offset().top + "px"
        }, {
            duration: 800
        });
        return false;
    });

<div id="first-background">
<a href="#second" class="scrollink">scroll to second</a>
</div>

<div id="#second">
</div>

A
aarty20, 2016-04-02
@aarty20

fullPage.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question