wired-spinner
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

wired spinner

wired-spinner

Hand-drawn sketchy spinner to show progress or a pending task.

For demo and view the complete set of wired-elememts: wiredjs.com

Usage

Add wired-spinner to your project:

npm i wired-spinner

Import wired-spinner definition into your HTML page:

<script type="module" src="wired-spinner/lib/wired-spinner.js"></script>

Or into your module script:

import { WiredSpinner } from "wired-spinner"

Use it in your web page:

<wired-spinner id="sp"></wired-spinner>
<wired-spinner spinning duration="1000"></wired-spinner>

Properties

spinning - Is the spinner spinning. Default is false.

duration - Time in milliseconds to complete one complete spin. Default is 1500

Styling

Change the color style of the spinner element to change its color.

License

MIT License (c) Preet Shihn

Package Sidebar

Install

npm i wired-spinner

Weekly Downloads

5

Version

2.1.0

License

MIT

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • shihn