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

fizzeroll

v1.0.15

Published

Easily animate your HTML elements on scroll. This library was built on top of GSAP animation library.

Readme

Fizzeroll - Ultimate On Scroll Animation Library

Easily animate your HTML elements on scroll. This library was built on top of GSAP animation library.

Installing

CDN

<body>
...
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/2.0.2/TweenMax.min.js"></script>
<script src="https://unpkg.com/fizzeroll/umd/fizzeroll.min.js"></script>
...
</body>

*Make sure to include GSAP before including this library, as shown above

If you are using node modules:

npm i fizzeroll

Usage

Example of how to configure and initialize animation

React:

import Fizzeroll from 'fizzeroll'

class App extends Component {

  componentDidMount(){
    Fizzeroll.init()
  }

  render() {
    <div>
      <div fizzeroll='{"duration": 0.5, "movement": [100, -100], "fade": true, "ease": ["Power2", "easeOut"]}'></div>
    </div>
  }

}

If you want to reset the animation on scroll top set 'fizzeroll-top-reset' as attribute on body tag

example:

  <body fizzeroll-top-reset>
  ...
  </body>

To apply animation on JavaScript:


  Fizzeroll.apply(element, configurations)

example:


  Fizzeroll.apply(document.getElementById('animationEl'), {duration: 0.5, movement: [100, -100], fade: true, ease: ["Power2", "easeOut"]})

This library also supports stagger animation, simply set the configuration on parent element, all children will be automatically animated in stagger fashion

example:

    <div fizzeroll='{"duration": 0.5, "movement": [100, -100], "fade": true, "ease": ["Power2", "easeOut"], "type": "stagger", "staggerDelay": 0.2}'>

      <div>I AM ANIMATED CHILD</div>
      <div>I AM ANIMATED CHILD</div>
      <div>I AM ANIMATED CHILD</div>
      <div>I AM ANIMATED CHILD</div>

    </div>

Stagger animation can be implemented with text element, text will be automatically split into letters and animated

example:

  <p fizzeroll='{"duration": 0.5, "movement": [100, -100], "fade": true, "ease":    ["Power2", "easeOut"], "type": "stagger", "staggerDelay": 0.2}'>
    THIS TEXT IS SPLIT INTO LETTERS AND ANIMATED
  </p>

if you want to split the text by word, add {"splitByWord": true}

example:

  <p fizzeroll='{"duration": 0.5, "movement": [100, -100], "fade": true, "ease":    ["Power2", "easeOut"], "type": "stagger", "staggerDelay": 0.2, "splitByWord": true}'>
    THIS TEXT IS SPLIT INTO WORDS AND ANIMATED
  </p>

Animation Parameters

| Key | Value Type | Example | Description | | ----------| --- | ---------- | ---------- | | duration | Number | 0.5 | How long it takes for animation to finish | | movement | Number[] ([x, y]) | [100, -100] | Direction of animation defined in X and Y | | fade | Boolean (true / false) | true | Whether the element is fading from 0 to its original opacity | | scale | Number | 0.5 | Whether the element is scaling to its original scale | | type | String | "stagger" | Type of animation | | splitByWord | Boolean (true / false) | true | Whether stagger animation split text by word| | ease | String[] ([name, style, config]) | ['Elastic', 'easeOut', 'config(1, 0.3)'] | Ease style (Check GSAP website for more ease style) | | allowMobile | Boolean (true / false) | true | Whether animation runs on mobile | | delay | Number | 2 | How long it takes before animation starts after activation | | offset | Number | 200 | How far it takes (scroll) before animation is activated | | staggerDelay | Number | 0.2 | How long it takes between staggered child | | playback | Boolean | true | Whether animation replays after element is below the viewport and then back in the viewport | | parallax | Number | 1 | How fast the element moves in parallax fashion as user scrolls |

Author

  • Hafiz Al Faza - https://github.com/hafizalfaza

License

This project is licensed under the MIT License