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

Disable reversing on specific elements #862

@JacobDB

Description

@JacobDB

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions