Current collected state Current
Observed since 20 Oct, 20:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Simple animate on scroll library
npm i ns-animate-on-scroll --save
In your .js file:
let animateOnScroll = require('ns-animate-on-scroll');
let options = {
debounceValue: 100
}
animateOnScroll(options);
Add three css classes to the block you want to be animated 'js-animated js-animated-$cssAnimationName $cssAnimationName', For example:
<div class = "js-animated js-animated-fade-in fade-in">
<h1>Lorem Ipsum is simply dummy text of the printin</h1>
<p>as opposed to using 'Content here, content here', making it look like re</p>
</div>
The package does not include css animations, so you have to add it in your project by your own, example:
.fade-in {
animation-name: fadeIn;
animation-duration: .45s;
animation-fill-mode: both;
animation-delay: .1s;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
debounceValue: number ( default: 50 );
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.4Registry latest | 19 Sept 2018 | 4 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitLab
Observed since 20 Oct, 20:08 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ca2aa2e0b949e256afa0983999ecf338a3314d3e23deb1c53d69846312cc004a