Conflicts with this code.
Opened this issue · 3 comments
Deleted user commented
I have this code an it makes conflicts with Parallax:
$('a[data-animation="scroll"]').on("click", function() {
$("html:not(:animated),body:not(:animated)").animate({
scrollTop: $($(this).attr("href")).offset().top + 10
}, 1e3);
It makes the image disappear and appear very faster, but it's annoying.
What is wrong?
wstoettinger commented
what are you trying to accomplish with this code?
Deleted user commented
A scroll animation when you click an "" with an ID in its HREF.
wstoettinger commented
could you provide the link to the site for testing?