bootstrap4c-spinners

1.0.2 • Public • Published

Bootstrap4C

spinners

The Bootstrap4C Spinners is a simple Bootstrap 4 spinners stylesheet and js component.

See demo here => https://haubek.github.io

Yarn install

yarn add bootstrap4c-spinners

CSS

Load CSS file.

<link href="path/to/component-spinners.css" rel="stylesheet">

Javascript

Load js file.

<script src="path/to/component-spinners.js"></script>

Add a function (like the example below).

$('.btn-spinner-example').click(function() {
  var btn = $(this);
  $(btn).buttonLoader('start');
  setTimeout(function() {
    $(btn).buttonLoader('stop');
  }, 3000);
});

HTML5 markup

<button type="button" class="btn btn-secondary btn-spinner btn-spinner-example">Button</button>

Package Sidebar

Install

npm i bootstrap4c-spinners

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

134 kB

Total Files

16

Last publish

Collaborators

  • haubek