fgnass /spin.js

A spinning activity indicator

★ 9,236⑂ 996👁 169⑃ 88● 306▤ 1
CSSMITCreated 2011-08-16spin.js.org
Download: 4.1.24.1.2 ↓4.1.22024-07-19
+0
Daily
9,236
stars
996
forks
169
watchers
88
prs
306
issues
1
releases

README

spin.js 

An animated loading spinner

  No images
  No dependencies
  Highly configurable
  Resolution independent
  Uses CSS keyframe animations
  Works in all major browsers
  Includes TypeScript definitions
  Distributed as a native ES6 module
  MIT License

 Installation

npm install spin.js

 Usage

 CSS

html



 TypeScript or JavaScript

javascript
import {Spinner} from 'spin.js';

var target = document.getElementById('foo');
new Spinner({color:'fff', lines: 12}).spin(target);


For an interactive demo and a list of all supported options please refer to the project's homepage.

Top issues

Latest release

4.1.2 4.1.2 2024-07-19
Changed
- Removed some dead code left over from version 3.x.

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON