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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@groupix/groupix-spinner

v1.1.2

Published

A lightweight Angular spinner library with customizable ball count, size, speed, and loading text

Readme

🚀 Groupix Spinner

NPM Downloads
NPM Type Definitions
NPM License
Bundle Size

⚡ A lightweight Angular spinner library for seamless loading animations


🎯 Features

✔️ Easy to integrate
✔️ Lightweight and fast performance
✔️ Customizable ball count (3-9 balls)
✔️ Multiple size options (sm, m, l, xl, xxl)


📦 Installation

Install the package using NPM:

npm install @groupix/groupix-spinner --save

🚀 Usage

1️⃣ Import the module in app.module.ts

import { GroupixSpinnerModule } from '@groupix/groupix-spinner';

@NgModule({
  declarations: [AppComponent],
  imports: [GroupixSpinnerModule],
  bootstrap: [AppComponent]
})
export class AppModule {}

2️⃣ Add the spinner component to your template

<!-- Basic usage -->
<groupix-spinner></groupix-spinner>

<!-- With custom properties -->
<groupix-spinner 
  [ballCount]="5"
  size="xl">
</groupix-spinner>

⚙️ Configuration Options

| Property | Type | Default | Description | |----------|------|---------|-------------| | ballCount | number | 3 | Number of bouncing balls (3-9) | | size | 'sm' \| 'm' \| 'l' \| 'xl' \| 'xxl' | 'l' | Size of the balls |


📏 Size Options

Choose the perfect size for your spinner! Each size is optimized for different use cases:

🔸 Available Sizes

| Size | Dimensions | Best For | Example | |------|------------|----------|---------| | sm | 20×20px | Small buttons, inline loading | <groupix-spinner size="sm"></groupix-spinner> | | m | 30×30px | Form inputs, compact spaces | <groupix-spinner size="m"></groupix-spinner> | | l | 40×40px | Default - General purpose | <groupix-spinner size="l"></groupix-spinner> | | xl | 50×50px | Page loading, prominent areas | <groupix-spinner size="xl"></groupix-spinner> | | xxl | 60×60px | Full-screen loading, hero sections | <groupix-spinner size="xxl"></groupix-spinner> |

🎨 Size Examples

<!-- Tiny spinner for buttons -->
<button [disabled]="loading">
  <groupix-spinner *ngIf="loading" size="sm" [ballCount]="3"></groupix-spinner>
  {{ loading ? 'Loading...' : 'Submit' }}
</button>

<!-- Medium spinner for cards -->
<div class="card-loading">
  <groupix-spinner size="m" [ballCount]="5"></groupix-spinner>
</div>

<!-- Large spinner for page loading -->
<div class="page-loader">
  <groupix-spinner size="xl" [ballCount]="7"></groupix-spinner>
  <p>Loading your content...</p>
</div>

<!-- Extra large for splash screens -->
<div class="splash-screen">
  <groupix-spinner size="xxl" [ballCount]="9"></groupix-spinner>
</div>

💡 Size Tips

  • Responsive Design: Use CSS media queries to change sizes on different screens
  • Performance: Smaller sizes with fewer balls load faster
  • Accessibility: Larger sizes are easier to see for users with visual impairments
  • Context: Match the spinner size to the content it's loading

🎮 Live Demo

🚀 Check out the live demo: Groupix Spinner Demo


❓ FAQ

🔹 How do I show/hide the spinner dynamically?

Use Angular binding:

<groupix-spinner *ngIf="isLoading"></groupix-spinner>
<button (click)="isLoading = !isLoading">Toggle Spinner</button>

🔹 How do I customize the spinner appearance?

You can customize ball count and size:

<!-- Small spinner with 3 balls -->
<groupix-spinner 
  [ballCount]="3"
  size="sm">
</groupix-spinner>

<!-- Large spinner with 7 balls -->
<groupix-spinner 
  [ballCount]="7"
  size="xxl">
</groupix-spinner>

🔹 What's the valid range for ball count?

The ball count must be between 3 and 9. Values outside this range will be automatically clamped.


🤝 Contributing

We ❤️ contributions! If you have any suggestions or want to improve this library, feel free to open an issue or submit a PR.


👨‍💻 Created by

Arshdeep Singh

📧 [email protected]
💼 LinkedIn
🌐 Personal Website


📄 License

This project is licensed under the MIT License.