The spinner in your address bar. Inspired by https://wavyurl.com
With npm: npm install url-spinner
Simple example
import { startSpinning } from "url-spinner";
const stopSpinning = startSpinning();
// Perform some async tasks and call stopSpinning at a proper time
setTimeout(stopSpinning, 3000);
To stop spinning automatically by 3s later
startSpinning({ duration: 3000 });
To customize the spinner
startSpinning({
duration: 3000,
spinner: ["🌚", "🌘", "🌗", "🌖", "🌝", "🌔", "🌓", "🌒"]
});
startSpining(options: UrlSpinnerOptions)
export interface UrlSpinnerOptions {
spinner?: string[];
duration?: number;
}
MIT (Chuang Yu [email protected])