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

animate-preloader-pro

v1.0.1

Published

A lightweight, modular, typography-based preloader library with cinematic morphing animations.

Readme

animatePage.js 🎭

A high-performance, lightweight typography preloader library. animatePage.js transforms standard loading screens into cinematic experiences by splitting text into individual characters and applying GPU-accelerated morphing animations.


✨ Features

  • 7 Cinematic Animations: Choose between morph, wave, flip, glitch, blur, reveal, and pulse.
  • Zero Dependencies: 100% Vanilla JavaScript.
  • Staggered Letter Logic: Automatic character-level DOM manipulation for fluid motion.
  • Fully Customizable: Control colors, speeds, fonts, and sizes via a simple API.
  • High Performance: Optimized with CSS will-change and transform for 60FPS smoothness.

🌐 Live Demo

Experience the cinematic animations in real-time on our interactive playground:

👉 Launch Live Demo


📸 Preview

animatePage Preview

Note: The demo allows you to toggle between all 7 animation styles and customize colors to see how the engine adapts to your branding.

🚀 Installation

1. Manual Download

Download animatePage.js and include it in your project directory.

2. NPM (If published)

npm install animate-preloader-pro

🛠 Usage

Since this is an ES6 Module, ensure your script tag uses type="module".

1. Basic Implementation

import animatePage from './animatePage.js';

// 1. Initialize settings
animatePage.init({
    bg: '#0a0a0a',     // Background Color
    fg: '#00ffcc',     // Text Color
    size: '5rem',      // Font Size (px, rem, vw)
    font: 'sans-serif' // Font Family
});

// 2. Start the animation
// animatePage.on(text, animationStyle)
animatePage.on("LOADING", "morph");

// 3. Stop the animation
setTimeout(() => {
    animatePage.off();
}, 3000);

🎨 Animation Styles

| Style | Effect Description | | --- | --- | | morph | (Default) Letters scale and skew with an organic focal blur. | | wave | A vertical ripple effect that moves across the string. | | flip | 3D Y-axis rotation with perspective depth. | | glitch | High-frequency digital noise with RGB shadow shifting. | | blur | Cinematic focal breathing where letters dissolve in/out. | | reveal | Professional editorial mask-reveal moving upwards. | | pulse | Soft neon glow breathing with subtle scaling. |


⚙️ API Reference

animatePage.init(options)

Configures the global styles and behaviors.

| Option | Type | Default | Description | | --- | --- | --- | --- | | bg | string | "#000" | Background color. | | fg | string | "#fff" | Letter color. | | size | string | "5rem" | Font size. | | speed | number | 2 | Speed of one animation cycle (seconds). | | fadeTime | number | 600 | Fade-out duration on off() (ms). | | font | string | "sans-serif" | Font family. |

animatePage.on(text, animation)

Triggers the preloader overlay.

  • text: The string you want to animate.
  • animation: The style key (e.g., "glitch").

animatePage.off()

Fades out and removes the preloader from the DOM.


🌟 Pro Tip: Dynamic Loading

For real-world apps, trigger .off() inside a window load event:

window.addEventListener('load', () => {
    animatePage.off();
});

📄 License

MIT © Itzbandhan