animatewheninview
v0.0.3
Published
Animate in or make callbacks when elements scrolls into the viewport
Maintainers
Readme
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 --saveAdd 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.
