N
N
Nikita Titov2015-09-24 10:54:46
JavaScript
Nikita Titov, 2015-09-24 10:54:46

What is the name of such an effect on js/jquery?

It is linked to href="#sample" id="sample".

For example, you press a button, and it moves smoothly towards it. I want to google and find such a ready-made effect, but I don’t even know its name. You would help me a lot.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dartess, 2015-09-24
@Giottox

// плавный скроллинг
    $('a[href*=#]').on("click", function (e) {
        var anchor = $(this);
        $('html, body').stop().animate({
            scrollTop: $(anchor.attr('href')).offset().top
        }, 1000);
        e.preventDefault();
    });

A
Alexander, 2015-09-24
@kentuck1213

Just smooth scrolling on the site. You can make it yourself in 5 minutes.

P
Phizio, 2015-09-24
@Phyzio

The simplest plugin is called smooth-scroll
cferdinandi.github.io/smooth-scroll - their demo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question