All Projects → adexin → spinners-angular

adexin / spinners-angular

Licence: MIT license
Lightweight SVG/CSS spinners for Angular

Programming Languages

typescript
32286 projects
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to spinners-angular

Whirl
CSS loading animations with minimal effort!
Stars: ✭ 774 (+3585.71%)
Mutual labels:  progress, loader, spinner, loading, spinners
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (+1109.52%)
Mutual labels:  progress, loader, spinner, loading, spinners
spinnies
Node.js module to create and manage multiple spinners in command-line interface programs
Stars: ✭ 111 (+428.57%)
Mutual labels:  progress, spinner, loading, spinners
Vue Loaders
Vue + loaders.css
Stars: ✭ 127 (+504.76%)
Mutual labels:  progress, loader, spinner, loading
Vue Wait
Complex Loader and Progress Management for Vue/Vuex and Nuxt Applications
Stars: ✭ 1,869 (+8800%)
Mutual labels:  progress, loader, spinner, loading
react-awesome-loaders
🚀 High quality, super responsive and completely customisable Loading Animations to insert into your website with single line of code.
Stars: ✭ 146 (+595.24%)
Mutual labels:  progress, loader, spinner, spinners
ZXLoadingView
🍕ZXLoadingView is an iOS progress-activity
Stars: ✭ 14 (-33.33%)
Mutual labels:  spinner, loading, spinners
Css Spinner
small, elegant pure css spinner for ajax or loading animation
Stars: ✭ 1,013 (+4723.81%)
Mutual labels:  loader, spinner, loading
Swiftloader
A simple and beautiful activity indicator written in Swift
Stars: ✭ 116 (+452.38%)
Mutual labels:  progress, loader, spinner
Aframe Preloader Component
A preloading bar that automatically displays while scene assets load.
Stars: ✭ 27 (+28.57%)
Mutual labels:  loader, spinner, spinners
Vue Element Loading
⏳ Loading inside a container or full screen for Vue.js
Stars: ✭ 234 (+1014.29%)
Mutual labels:  loader, spinner, loading
Loading Bar
Flexible, light weighted and super fast Progress Bar Library
Stars: ✭ 300 (+1328.57%)
Mutual labels:  progress, loader, loading
React Spinners
A collection of loading spinner components for react
Stars: ✭ 2,054 (+9680.95%)
Mutual labels:  loader, spinners, loading-spinners
Ng Block Ui
Block UI Loader/Spinner for Angular
Stars: ✭ 135 (+542.86%)
Mutual labels:  loader, spinner, loading
Alive Progress
A new kind of Progress Bar, with real-time throughput, ETA, and very cool animations!
Stars: ✭ 2,940 (+13900%)
Mutual labels:  progress, spinner, spinners
Awloader
AWLoader is a UI Component that allows you to integrate loader that fits your needs within your app.
Stars: ✭ 11 (-47.62%)
Mutual labels:  progress, loader, loading
Ngx Ui Loader
Multiple Loaders / spinners and Progress bar for Angular 5, 6, 7 and 8+
Stars: ✭ 368 (+1652.38%)
Mutual labels:  loader, spinner, loading
Vue Loading Overlay
Vue.js component for full screen loading indicator 🌀
Stars: ✭ 784 (+3633.33%)
Mutual labels:  loader, spinner, loading
Waitme
jquery plugin for easy creating loading css3/images animations
Stars: ✭ 302 (+1338.1%)
Mutual labels:  progress, loader, loading
React Circle
Renders a svg circle + progress, it just works 💘
Stars: ✭ 925 (+4304.76%)
Mutual labels:  progress, spinner, loading

Spinners Angular

npm License Build Status Coverage Status gzip size

9 awesome spinners built as angular components. Server side rendering with Angular Universal, AOT, Ivy/NGCC and Angular Elements are supported.

Demo

View demo with examples of angular component usage.

Getting started

Installation

$ npm install spinners-angular

or add it directly to HTML page as angular elements

Usage

Add spinners module to module.ts

All spinners at once

import { SpinnersAngularModule } from 'spinners-angular';

@NgModule({
  imports: [ SpinnersAngularModule ]
})

Single spinner

import { SpinnerCircularModule } from 'spinners-angular/spinner-circular';

@NgModule({
  imports: [ SpinnerCircularModule ]
})

Use it in the template

<sa-spinner-circular></sa-spinner-circular>

Hide spinner

For angular component

<sa-spinner-circular [enabled]="false"></sa-spinner-circular>

For angular element

<sa-spinner-circular enabled=""></sa-spinner-circular>

List of components

Component Example Component Example Component Example
sa-spinner-circular sa-spinner-circular-fixed sa-spinner-circular-split
sa-spinner-round sa-spinner-round-outlined sa-spinner-round-filled
sa-spinner-dotted sa-spinner-infinity sa-spinner-diamond

Properties

The following optional properties are available.

Property Default value Type Description
size 50 number or string Set the size as number of pixels or any valid CSS string (e.g. size="100%").
thickness 100 number Set lines width as a percentage of default thickness.
сolor '#38ad48' string Set the color. Can be set to any valid CSS string (hex, rgb, rgba).
secondaryColor 'rgba(0,0,0,0.44)' string Set the secondary color. Can be set to any valid CSS string (hex, rgb, rgba).
speed 100 number Set the animation speed as a percentage of default speed.
enabled true boolean Show/Hide the spinner.
still false boolean Disable/Enable spinner animation.
styles undefined object Pass CSS styles to the root SVG element

Use dash-separated lowercase for angular elements attribute names. Web Components don't support passing anything other than string values via attributes, thus for "styles" attribute you can either set property with js:

<script>
  document.querySelector('sa-spinner-circular').styles = { 'background-color': 'grey' };
</script>

or pass object as json string:

  <!-- using single quotes to wrap json -->
  <sa-spinner-circular-fixed styles='{"background-color": "red"}'></sa-spinner-circular-fixed>
  <!-- escaping quotes -->
  <sa-spinner-circular styles="{&quot;background-color&quot;: &quot;grey&quot;}"></sa-spinner-circular>

Minimizing Bundle Size

As well as loading all spinners at once it's possible to leverage code splitting and load a specific one:

import { SpinnersAngularModule } from 'spinners-angular';

vs

import { SpinnerCircularModule } from 'spinners-angular/spinner-circular';

Angular Elements usage

<!doctype html>
<html>
  <head>
    <script src="https://unpkg.com/spinners-angular/elements/polyfills-es5.js"></script>
    <script src="https://unpkg.com/spinners-angular/elements/runtime-es5.js"></script>
    <!--
      to load a specific spinner
      (only one supported, load all spinners if more than one is used to reduce loaded js size)
    -->
    <script src="https://unpkg.com/spinners-angular/elements/spinner-circular-es5.js"></script>
    <!-- to load all spinners at once -->
    <script src="https://unpkg.com/spinners-angular/elements/spinners-es5.js"></script>
  </head>

  <body>
    <sa-spinner-circular></sa-spinner-circular>
  </body>
</html>

Browsers support

Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
IE / Edge
Edge
last 2 versions last 2 versions last 2 versions last 2 versions last 2 versions*

* - Legacy EdgeHTML Edge (i.e. 42-44) is also supported except for sa-spinner-round and sa-spinner-round-outlined.

Issues and Bugs

Let us know if you found a bug!

Spinners for other frameworks

Support and Contact

Have a quick question or need some help? Please do not hesitate to contact us via email at [email protected].

Credits

This component is developed by consulting agency Adexin.

License

Spinners Angular is released under MIT license. You are free to use, modify and distribute this software, as long as the copyright header is left intact.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].