back to home
fgnass / spin.js
A spinning activity indicator
9,292 stars
1,009 forks
15 issues
CSSTypeScriptJavaScript
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing fgnass/spin.js in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Source files are only loaded when you start an analysis to optimize performance.
Repository Summary (README)
Previewspin.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
<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.