Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    animatewheninviewpublic

    What it is

    Animate in or make callbacks when elements scrolls into viewport

    Installation

    animatewheninview.js is available as an npm package.

    npm install animatewheninview --save

    Add animatewheninview.min.js to the bottom of the <body> like this:

    <script src="animatewheninview.min.js"></script>

    Note

    This is an very early version of animatewheninview.

    How to Use

    Usage

    In this example the div will animate in (css) when it enters the viewport.

    <div data-animatewheninview>
        <img src="demo.jpg" >
    </div>

    Options

    Coming soon.

    Browser Support

    Coming soon.

    License

    The code is available under the MIT License.

    install

    npm i animatewheninview

    Downloadslast 7 days

    2

    version

    0.0.3

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar