spin.js

A spinning activity indicator

  • Owner: fgnass/spin.js
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

spin.js JS.ORG

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

<link rel="stylesheet" href="node_modules/spin.js/spin.css">

TypeScript or 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.

Main metrics

Overview
Name With Ownerfgnass/spin.js
Primary LanguageCSS
Program languageJavaScript (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2011-08-16 09:46:36
Pushed At2024-07-19 20:53:58
Last Commit At2024-07-19 15:49:31
Release Count28
Last Release Name4.1.2 (Posted on 2024-07-19 15:52:56)
First Release Name1.0.0 (Posted on )
用户参与
Stargazers Count9.3k
Watchers Count174
Fork Count1k
Commits Count327
Has Issues Enabled
Issues Count306
Issue Open Count11
Pull Requests Count36
Pull Requests Open Count4
Pull Requests Close Count48
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private