npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

animlp.js

v0.9.2

Published

Only 3kb, lightweight scroll animation library for landing pages

Readme

AnimLP npm version License: MIT

Documentation - Russian version

Fast and lightweight (only 3kb), a library for scroll animation web pages! ( vanilla JavaScript )

>>> DEMO <<<

Install

# Install with NPM
$ npm install --save animlp.js

# and with Yarn
$ yarn add animlp.js

Setup

// ES Modules
import animLP from 'animlp.js';

// CommonJS modules
var animLP = require('animlp.js');

add styles


// Webpack
@import '~animlp.js/lib/css/animLP.css';

// Other
@import './node_modules/animlp.js/lib/css/animLP.css';

Usage

The library works only with classes!

You need to add the class "animlp" to the element that will be animated.

Example:
<p class="card__title-1 animlp">Hello world!</p>
    import animLP from 'animlp.js';
    
    animLP({
      elements: 
        {
          class: 'card__title-1',     // The class of the element to be animated.
          duration: 800,              // Animation time in ms
          delay: 100,                 // Delay before animation starts
          func: 'ease',               // The function to perform the animation ( for example: cubic-bezier.com )
          animation: 'fadeDown'       // Animation name
        }
      },
      param: {
        once: false                   // Trigger animation "once" or "constantly"
      }
    });

If several elements are animated, the elements are wrapped in an array.

Example:
<p class="card__title-1 animlp">Hello world!</p>
<p class="card__title-2 animlp">Hello world again!!!</p>
import animLP from 'animlp.js';
    
animLP({
  elements: [
    {
      class: 'card__title-1',
      duration: 800,
      delay: 100,
      func: 'ease',
      animation: 'fadeDown'
    },
    {
      class: 'card__title-2',
      duration: 1000,
      delay: 300,
      func: 'ease-in-out',
      animation: 'fadeUp'
    }
  ],
  param: {
    once: false
  }
});

If different elements have the same animation, wrap the classes in an array.

Example:
<p class="card__title-1 animlp">Hello world!</p>
<p class="card__title-2 animlp">Hello world again!!!</p>
<p class="card__title-3 animlp">Yes, You know</p>
import animLP from 'animlp.js';
    
animLP({
  elements: [
    {
      class: ['card__title-1', 'card_title-3'],
      duration: 800,
      delay: 100,
      func: 'ease',
      animation: 'fadeDown'
    },
    {
      class: 'card__title-2',
      duration: 1000,
      delay: 300,
      func: 'ease-in-out',
      animation: 'fadeUp'
    }
  ],
  param: {
    once: false
  }
});

Customization

Elements are animated with CSS.
The whole animation is in the file animlp.js / lib / css / animLP.css (minified) or animlp.js / lib / scss / animLP.scss.
You can add any of your animation in the CSS file and use your animation name in the settings.

Animation

Animation can be seen here. -> Animate.css

Animation list:

  • pulse
  • rubberBand
  • bounce
  • bounceIn
  • bounceDown
  • bounceLeft
  • bounceRight
  • bounceUp
  • fade
  • fadeDown
  • fadeLeft
  • fadeRight
  • fadeUp
  • flipX
  • flipY
  • lightSpeed
  • rotate
  • rotateDownLeft
  • rotateDownRight
  • rotateUpLeft
  • rotateUpRight
  • jackTheBox
  • roll
  • zoom
  • zoomDown
  • zoomLeft
  • zoomRight
  • zoomUp

Default options

These parameters can be omitted, the default parameters will work.

| Property | Type | Default | |-----------|-------|-----------| |duration | Number| 500 | |delay | Number| 0 | |func | String| ease | |animation| String| fadeUp| | | | | | | | | |once |Boolean| true |

License

Created by Alexey Bolotin. Released under the MIT License.