scss-spinner

0.1.3 • Public • Published

A simple SCSS spinner

NPM

Example

Usage

Add Mathsass and Scss-spinneras devDependencies

$ npm i -D mathsass
$ npm i -D scss-spinner

Add Mathsass and Scss-spinner in your Node-sass includePaths

sass.render({
  // file: path.join(styleDir, 'main.scss'),
  // ...
  includePaths: [
    path.join(__dirname, '../node_modules/mathsass/dist'),
    path.join(__dirname, '../node_modules/scss-spinner/src')
  ]
  // ...
});

And finally import Scss-spinner in your .scss file.

// You can override this variables. If none, defaults value are used
$spinner-animation-duration: 'time-for-a-rotation'// default 1s
$spinner-nb-point: 'number-of-spinner-points'// default 20
$spinner-point-color: 'main-color'// default red
$spinner-alternative-color: 'secondary-color'// default blue
 
@import 'spinner';
 

Readme

Keywords

Package Sidebar

Install

npm i scss-spinner

Weekly Downloads

3

Version

0.1.3

License

MIT

Last publish

Collaborators

  • kepennar