example: https://dn9x.github.io/loading.js/
- CSS
- Javascript
// How to show?
$.showLoading(option);
Params:
option.name --loading style / string
option.allowHide --click mask hide loading / boolean
option.callback --callback / function
// How to hide?
$.hideLoading();
if you dont need jquery, you can use loading.min.js. pls see example
Licensed under MIT.