Skip to content

A plain html / css spinner representing our organistaion logo

License

Notifications You must be signed in to change notification settings

Pazekal90/complex-spinner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 44.4%
  • CSS 34.9%
  • HTML 20.7%