Open ghost opened 6 years ago
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?
what are you trying to accomplish with this code?
A scroll animation when you click an "" with an ID in its HREF.
could you provide the link to the site for testing?
I have this code an it makes conflicts with Parallax:
It makes the image disappear and appear very faster, but it's annoying.
What is wrong?