A lightweight Angular spinner library with customizable ball count, size, speed, and loading text
npm install @groupix/groupix-spinner!NPM Downloads
!NPM Type Definitions
!NPM License
!Bundle Size
---
āļø Easy to integrate
āļø Lightweight and fast performance
āļø Customizable ball count (3-9 balls)
āļø Multiple size options (sm, m, l, xl, xxl)
---
Install the package using NPM:
``sh`
npm install @groupix/groupix-spinner --save
---
`typescript
import { GroupixSpinnerModule } from '@groupix/groupix-spinner';
@NgModule({
declarations: [AppComponent],
imports: [GroupixSpinnerModule],
bootstrap: [AppComponent]
})
export class AppModule {}
`
`html
size="xl">
`
---
| Property | Type | Default | Description |
|----------|------|---------|-------------|
| ballCount | number | 3 | Number of bouncing balls (3-9) |size
| | 'sm' \| 'm' \| 'l' \| 'xl' \| 'xxl' | 'l' | Size of the balls |
---
Choose the perfect size for your spinner! Each size is optimized for different use cases:
| Size | Dimensions | Best For | Example |
|------|------------|----------|---------|
| sm | 20Ć20px | Small buttons, inline loading | |m
| | 30Ć30px | Form inputs, compact spaces | |l
| | 40Ć40px | Default - General purpose | |xl
| | 50Ć50px | Page loading, prominent areas | |xxl
| | 60Ć60px | Full-screen loading, hero sections | |
`html
Loading your content...
$3
- 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
$3
Use Angular binding:
`html
`$3
You can customize ball count and size:
`html
[ballCount]="3"
size="sm">
[ballCount]="7"
size="xxl">
``The ball count must be between 3 and 9. Values outside this range will be automatically clamped.
---
We ā¤ļø contributions! If you have any suggestions or want to improve this library, feel free to open an issue or submit a PR.
---
š§
š¼ LinkedIn
š Personal Website
---
This project is licensed under the MIT License.