Skip to content

trailsnail/complex-spinner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

complex-spinner

A plain html / css spinner representing our organisation logo

Usage

  • include css from clx_spinner.css
  • place following markup in your page when spinner should be shown: <div class="clx_curtain"><div class="clx_spinner"></div></div>
  • Alternatively: load clx_spinner.js and add a CustomElement <clx-spinner></clx-spinner> to your markup when spinner has to be shown.

Example

Here is an example for creating the CustomElement with additional "size" parameter.

document.getElementById('clickMe').addEventListener('click', function(ev) {
  var spinner = document.createElement("clx-spinner");
  
  // add data-size for dynamic size given from callsite
  spinner.dataset.size = '100px';
    document.querySelector('body').appendChild(spinner);
});

Demo

Complex-Spinner Demo

About

A plain html / css spinner representing our organistaion logo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published