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

animotionjs-plus

v1.2.2

Published

An advanced custom web animation engine for Vanilla JS, React, and Next.js with CSS, Three.js, Lottie, and dotLottie support.

Readme

Animotion.js

License: MIT npm version

Advanced custom web animation engine — scroll, text, 3D, media, and layout animations for Vanilla JS, React, and Next.js.

Animotion gives you a complete animation toolkit with a unified API. Features include tweens, timelines, scroll-driven animation, text splitting, spring physics, motion paths, draggable interactions, WebGL shaders, Three.js integration, Lottie/dotLottie playback, audio/video scrubbing, reactive layouts, and a declarative HTML attributes system.

Quick Start

npm install animotionjs-plus
import Animotion from 'animotionjs-plus';
import 'animotionjs-plus/styles.css';

// Tween
Animotion.to('.box', { x: 200, opacity: 0.5, rotate: 45 }, { duration: 1, ease: 'elastic-out' });

// Timeline
const tl = Animotion.timeline();
tl.to('.a', { x: 100 }, 0.5)
  .to('.b', { opacity: 0 }, 0.3, '>');

// ScrollTrigger
Animotion.scroll('.section', { scrub: true, pin: true });

Features

  • Tween — animate any DOM property, CSS style, transform, filter, or JS object
  • Timeline — sequence and overlap animations with labels and callbacks
  • ScrollTrigger — pin, scrub, reverse, callbacks
  • SplitText — split into chars/words/lines with replace & insert
  • Draggable — drag with physics/inertia
  • SpringPhysics — mass-spring-damper physics simulation
  • MotionPath — animate along SVG paths or point arrays
  • SceneSequence — declarative scene-based sequencing
  • TextEffects — typewriter, wave, scramble
  • VideoAnimation — video scrubbing and segment playback
  • AudioAnimation — audio scrubbing and segment playback
  • Layouts — circular, orbit, spiral, wave, scatter, radial-tree layouts
  • PNGSequence — frame-by-frame PNG sequence player
  • ParallaxEffect — parallax scrolling
  • Interactions — event-driven animation triggers (click, hover, etc.)
  • WebGLSupport — shader animations
  • Three.js — 3D object animation and GLTF state machines
  • Lottie/dotLottie — Lottie JSON and dotLottie playback
  • ViewModel + StateMachine + Binding — reactive data-driven animation
  • AnimationContext — scoped animation orchestration
  • React / Next.js — hooks: useAnimotion, useAnimotionContext, useAnimotionAttributes
  • HTML Attributes — declarative am-* attributes (zero JS)

Docs

Full documentation is in the docs/ directory:

Interactive examples in examples/.

Framework Integration

// React
import { useAnimotion } from 'animotionjs-plus/react';

function Component() {
  const ref = useAnimotion((ctx, scope) => {
    ctx.from(scope, { opacity: 0, y: 20 }, { duration: 0.5 });
  }, []);
  return <div ref={ref}>Hello</div>;
}
// Next.js (client component)
'use client';
import { useAnimotion } from 'animotionjs-plus/next';

Declarative Attributes

<div am-from='{"opacity":0,"y":20}' am-to='{"opacity":1,"y":0}'
     am-options='{"duration":0.5,"ease":"back-out"}'></div>

<section am-scroll='{"pin":true,"scrub":true}'>
  <h1 am-split='{"type":"chars","replace":{"0":"🌟"}}'>Hello</h1>
</section>

Build

npm run build    # production build → dist/
npm run dev      # watch mode
npm test         # run tests
npm run lint     # lint source

License

MIT