Catalog npm
PACKAGE EXPLORERView in registry

4eck-animate-on-scroll

npm

Simple animate on scroll library

Versions collected1
Direct dependencies4From release 0.1.4
Last observed20 Oct, 20:08 UTC

README

Current package documentation

animate-on-scroll

Installation

npm i ns-animate-on-scroll --save

In your .js file:

    let animateOnScroll = require('ns-animate-on-scroll');
    
    let options = {
        debounceValue: 100
    }
    
    animateOnScroll(options);

Usage

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;
  }
}

Options

debounceValue: number ( default: 50 );

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.4Registry latest19 Sept 20184

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

NOT_FOUND
4toolbox/npmjs/4eck-animate-on-scroll

Shared repository data · GitLab

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 20:08 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ca2aa2e0b949e256afa0983999ecf338a3314d3e23deb1c53d69846312cc004a