Animate in or make callbacks when elements scrolls into viewport
animatewheninview.js is available as an npm package.
npm install animatewheninview --save
Add animatewheninview.min.js to the bottom of the
<body> like this:
This is an very early version of animatewheninview.
In this example the div will animate in (css) when it enters the viewport.
The code is available under the MIT License.