pixelcog/parallax.js

Conflicts with this code.

Opened this issue · 3 comments

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?