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

skloading-animated

v0.0.8

Published

A package for animated loading in the react js

Readme

Loading Animation

A simple npm package to display animated loading in react js . The package includes various animation types that can be customized with text.

example code:

import React, { useState, useEffect } from 'react';
import { LoadingAnimation, CustomTextAnimation } from 'skloading-animated';

const AnimationDemo = () => {
    const [loadingText, setLoadingText] = useState('Loading...');
    const [customText, setCustomText] = useState('Processing...');
    const [animationStarted, setAnimationStarted] = useState(false);
    const [customAnimationStarted, setCustomAnimationStarted] = useState(false);

    useEffect(() => {
        let loadingAnimation = new LoadingAnimation('Loading', { animationType: 'dots', interval: 500 });
        if (animationStarted) {
            loadingAnimation.start(setLoadingText);
            return () => {
                loadingAnimation.stop(setLoadingText);
            };
        }
    }, [animationStarted]);

    useEffect(() => {
        let customTextAnimation = new CustomTextAnimation('Processing', 300);
        if (customAnimationStarted) {
            customTextAnimation.start(setCustomText);
            return () => {
                customTextAnimation.stop(setCustomText);
            };
        }
    }, [customAnimationStarted]);

    return (
        <div style={{ textAlign: 'center', marginTop: '50px' }}>
            {/* Loading Animation Example */}
            <div>
                <p>{loadingText}</p>
                {!animationStarted ? (
                    <button onClick={() => setAnimationStarted(true)}>Start Loading Animation</button>
                ) : (
                    <button onClick={() => setAnimationStarted(false)}>Stop Loading Animation</button>
                )}
            </div>

            {/* Custom Text Animation Example */}
            <div style={{ marginTop: '30px' }}>
                <p>{customText}</p>
                {!customAnimationStarted ? (
                    <button onClick={() => setCustomAnimationStarted(true)}>Start Custom Text Animation</button>
                ) : (
                    <button onClick={() => setCustomAnimationStarted(false)}>Stop Custom Text Animation</button>
                )}
            </div>
        </div>
    );
};

export default AnimationDemo;



## Features

- Different loading animations to choose from:
  - Basic Spinner
  - Rainbow Loader
  - Square in a Circle Loader
  - Dump Truck Loader
  - Dots Loader
  - Bouncing Ball Loader
  - Rotating Arrows Loader
  - Clock Animation
- Custom text can be displayed alongside animations.

## Installation

To install the `loading-animation` package, run the following command in your terminal:


```bash
npm install skloading-animated