• Stars
    star
    9,313
  • Rank 3,665 (Top 0.08 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 13 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A spinning activity indicator

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.

More Repositories

1

node-dev

Zero-conf Node.js reloading
JavaScript
2,249
star
2

domino

Server-side DOM implementation based on Mozilla's dom.js
JavaScript
757
star
3

inbox-app

Google Inbox packaged as Electron app
JavaScript
271
star
4

classname-variants

Variant API for plain class names
TypeScript
157
star
5

typed-rpc

Lightweight JSON-RPC solution for TypeScript projects
TypeScript
98
star
6

express-jsdom

Server-side DOM for express.js
JavaScript
56
star
7

filewatcher

Wrapper around fs.watch that falls back to fs.watchFile
JavaScript
54
star
8

linger

Busy-indicator for the terminal
JavaScript
51
star
9

google-calendar-app

Google Calendar packaged as electron app
JavaScript
51
star
10

instant-server

Instant HTTP server with live-reload
JavaScript
46
star
11

instant

transparent live-reloading
JavaScript
45
star
12

gateway

Node.js middleware to execute CGI scripts
JavaScript
37
star
13

jshint.tmbundle

JSHint TextMate Bundle
JavaScript
36
star
14

form2json

Alternative decoder for form-urlencoded data
JavaScript
31
star
15

retrace

Use source-maps on the server to make browser stack traces more readable
JavaScript
31
star
16

sendevent

Connect middleware for server-sent-events with iframe fallback
JavaScript
26
star
17

tamper

Node.js middleware to capture and modify response bodies
JavaScript
22
star
18

zepto-node

JavaScript
21
star
19

mkay

Lightweight Jade/HAML-like DOM builder for jQuery and Zepto.js
JavaScript
21
star
20

type-assurance

Lightweight type guards and assertions
TypeScript
19
star
21

react-api-query

Hooks to use react-query with a typed API client
TypeScript
19
star
22

glitter

WebGL experiment that creates a glitter effect based on the device orientation.
JavaScript
15
star
23

uniqs

Tiny utility to de-duplicate lists
JavaScript
11
star
24

orca.wtf

JavaScript
11
star
25

diffparser

Unified diff parser for Node and the browser
JavaScript
11
star
26

npm-as-nom

Wrapper around npm that screams COOKIE!! every time you type nom instead
JavaScript
10
star
27

gmail-app

Gmail packaged as Electron app
CSS
10
star
28

googlemaps-react-primitives

Google Maps primitives for React
TypeScript
8
star
29

stacked

lightweight middleware infrastructure
JavaScript
6
star
30

configurify

A browserify transform to expose server-side configuration options
JavaScript
6
star
31

rework-palette

Rework plugin to resolve custom CSS color palettes
JavaScript
5
star
32

php-proxy-middleware

Node middleware to forward requests to a built-in PHP server
JavaScript
5
star
33

rework-clearfix

JavaScript
5
star
34

deep-match

Check if two values deeply match
JavaScript
4
star
35

mdi-json

Material Design Icons as JSON
JavaScript
4
star
36

rework-parent

rework plugin to add parent selector support
JavaScript
4
star
37

dombench

Benchmark tool for Node.js DOM implementations
JavaScript
4
star
38

dynaform

A jQuery plugin to dynamically create forms
JavaScript
4
star
39

with-server

Command line utility to start/stop a local server in order to execute end-to-end tests
JavaScript
3
star
40

simple-image-resize

TypeScript
3
star
41

materialize

Tiny utility to turn a list into an object
JavaScript
3
star
42

fgnass.github.com

My personal website
HTML
3
star
43

ssi-middleware

Express middleware to render Server Side Includes
JavaScript
2
star
44

friendly-webdriver

Thin wrapper around the official Selenium JavaScript bindings
JavaScript
2
star
45

dommy

A Document dummy that mocks just enough of the DOM API to render HTML.
JavaScript
2
star
46

unexpected-webdriver

selenium-webdriver plugin for the unexpected assertion libary
JavaScript
2
star
47

statdir

collect stats for all files in a directory
JavaScript
1
star
48

dirwatcher

recursively watch directories for modifications
JavaScript
1
star
49

redux-route

Routing for Redux
JavaScript
1
star
50

browser-resolve-sync

Node.js resolve algorithm with browser field support
JavaScript
1
star
51

fwatch

JavaScript
1
star