Answer the question
In order to leave comments, you need to log in
Why jQuery scroll animation doesn't work?
It is required when clicking on the button to make a scroll to the element. The problem is that the element appears after clicking, and the scripts are not available to me for settimeout, I scrolled to the end of the block, above the required element, but for some reason the animation does not work and the scroll happens instantly.
$("about_economy_href").click(function() {
$('html, body').animate({
scrollTop: $("header_wrap").offset().top + $("header_wrap").height() + 2
}, {
duration: 370,
easing: "linear"
});
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question