sultaniman / ember-cli-ascii-spin

ASCII spinner component for ambitious applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ember-cli-ascii-spin

This is a simple Ember addon with ASCII spinners.

Installation

$ ember install ember-cli-ascii-spin

Available spinners

I decided to use spinners from cli-spinners by @sindresorhus

spinners spinners

Usage

{{!-- Simple usage --}}
{{ascii-spinner spinner='dots' interval=100}}

{{!-- With custom --}}
{{ascii-spinner custom='⠁ ⠂ ⠄ ⡀ ⢀ ⠠ ⠐ ⠈'}}

Options

  • spinner - default spinner default: dots,
  • interval - update interval (in milliseconds) default: 150,
  • custom - custom spinner definition (put spaces between each element) format: '⠁ ⠂ ⠄ ⡀ ⢀ ⠠ ⠐ ⠈'

About

ASCII spinner component for ambitious applications.

License:MIT License


Languages

Language:JavaScript 83.3%Language:HTML 14.0%Language:CSS 2.7%