Skip to content

ketencek/spin.js

 
 

Repository files navigation

spin.js JS.ORG

An animated loading spinner

  • No images, no external CSS
  • No dependencies
  • Highly configurable
  • Resolution independent
  • Uses requestAnimationFrame(), falling back to setTimeout() in IE 9
  • Works in all major browsers
  • Includes TypeScript definitions
  • MIT License

Usage

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.

About

A spinning activity indicator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 32.7%
  • TypeScript 27.8%
  • JavaScript 20.0%
  • CSS 19.5%