Answer the question
In order to leave comments, you need to log in
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
// плавный скроллинг
$('a[href*=#]').on("click", function (e) {
var anchor = $(this);
$('html, body').stop().animate({
scrollTop: $(anchor.attr('href')).offset().top
}, 1000);
e.preventDefault();
});
Just smooth scrolling on the site. You can make it yourself in 5 minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question