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

anim8js

v1.1.12

Published

anim8js - Anim8 Everything

Readme

logo

The ultimate javascript animation library. Animate everything - from HTML elements to objects like circles, sprites, or skeletons.

It's as easy as anim8( button ).play('tada ~0.5s 1.5s x4 z100ms ease-inout') - which plays the tada animation in 1.5 seconds after waiting 0.5 seconds 4 times with a 100 ms break in between using the easing function ease-inout.

Attributes can be animated along a path, by using spring forces, or physical forces. Attributes can be animated together or separately. The values that define the paths, spring, and physical forces can be a constant value (ex: 0, {x:2, y:5}), a function which is evaluated during animation, a function which is evaluated at the beginning of an animation, the current value, or a value relative to the current value.

Download Stats

Documentation

Installation

  • Bower: bower install anim8js
  • Node: npm install anim8js
  • CDN: <script src="https://cdn.jsdelivr.net/npm/anim8js@1/build/anim8js.min.js"></script>
  • Download: anim8js or anim8js minified

Extensions

Features

  • Create your own animations
  • Play animations by name, name & modifiers, or by custom definition
  • Queue animations
  • Transition into a new animation in 6 different ways
  • Play multiple animations at once over different attributes
  • Springs forces on an attribute given some rest value
  • Sequential animations involving multiple subjects
  • Defer animation commands until an event occurs
  • Save animations to be used later
  • Modify animations with a delay, duration, repeats, sleeping between repeats, scale, and easing
  • Relative values (ex: '+20', '-100')
  • Apply physical forces (velocity and/or acceleration) to an attribute
  • An attribute can follow a path of points
  • Keyframe animations
  • Values used in paths, springs, and physics can be constants, functions that return a value at the beginning of the animation, functions that return a live value during the animation, or a value relative to the current value.

FAQ

What are valid animation durations, delays, & sleeps?

A number of milliseconds or a string with a number followed by any of the following units: ms, s, c, cs, third, jiffy, sec, m, min, h, hr

What are valid animation repeats?

A number or any of the following strings: inf, infinity, infinite, once, twice, thrice, dozen, random

What are valid easings?

  • A function which accepts a delta value and returns a new delta value.
  • A string which is the name of an existing easing in anim8.Easings.
  • A string in the format of easing-easingType where easing is an existing easing in anim8.Easings and easingType is an existing type in anim8.EasingsTypes like in, out, inout, or pong. An example is 'sqrt-inout'.
  • An array of 4 values which represent control points for a bezier curve.

How do I override any default values?

You can find the following defaults in anim8.Defaults:
duration, easing, teasing, delay, sleep, repeat, scale, transitionTime, transitionDelta, transitionIntoDelta, transitionEasing, cache

How do I add my own ______

  • Easing: anim8.Easings.myCustomEasing = function(x) { ... };
  • Path: anim8.Paths.myCustomPath = function(pathDefinition) { ... return instance of anim8.Path ... };
  • Spring: anim8.Springs.myCustomSpring = function(springDefinition) { ... return instance of anim8.Spring ... };
  • Builder: anim8.Builders.myCustomParser = instance of anim8.Parser;
  • Animation: anim8.save( 'myAnimationName', animation definition );
  • Calculator: anim8.Calculators.myCustomCalculator = instance of anim8.Calculator;