visibility-class

    1.0.3 • Public • Published

    Visibility Class

    Adds a visible/invisible class to chosen elements as you scroll.

    Install

    npm i visibility-class
    

    Integrate

    You're likely gonna wanna import and compile it, as it's written in ES6 (because life is short).

    import visibilityClass from "visibility-class";
    visibilityClass(".visibility-class");
    <section class="visibility-class"></section>

    That's all well and good, but what does it do?

    As you scroll down, it'll add a class of visible or invisible to your chosen elements.

    <section class="visibility-class visible"></section>

    Keywords

    none

    Install

    npm i visibility-class

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    3.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • entozoon