Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Disable reversing on specific elements #862

Open
JacobDB opened this issue Oct 12, 2017 · 0 comments
Open

Disable reversing on specific elements #862

JacobDB opened this issue Oct 12, 2017 · 0 comments

Comments

@JacobDB
Copy link

JacobDB commented Oct 12, 2017

I've got a page which utilizes skrollr for fading in some elements and for making some background images "parallax." Once the elements are faded in, they need to remain faded in (i.e. not be reversible), while keeping the parallax image effect on other elements. Is this possible with skrollr?

I've tried using the following, but it disables all effects after they complete:

skrollr.init({
    beforerender: (data) => {
        return data.curTop > data.lastTop;
    }
});

I've tried console.log(data) to see if there's anything in there that could be useful, but I don't see anything that would allow me to disable skrollr on some elements but not others.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant