our awesome loading mechanic
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENCE
README.md
index.html
loading.js

README.md

cat-loader

cat object loader. demo

usage

var options = {
  text: "{VAL} %", // or "Loading"

  modal: {
    background:"rgba(0,0,0,0.7)",
    zIndex: 9999999999
  },

  blur: true,

  className: "wmas-loading"
};

// this renders the loading object
var loading = new Loading(options);

// set the number of objects to load
loading.countToLoad = 23; 

// set up the callback when complete
loading.onFinished = function(){
  clearInterval(t);
}

// called when an object is loaded
loading.objectLoaded();