A loader is used when some action is waiting to complete e.g. an ajax request.
Show a loading mask on an element.
Some text.
Some text.
Some text.
// Show loader
$('#demo1').load();
// Show dark loader
$('#demo1').load({
msg: 'Loading...',
color: 'dark'
});
// Customize icon
$('#demo1').load({
icon: '<i class="fa fa-circle-o-notch fa-spin"></i>',
msg: 'Loading...'
});
// Remove Loader
$('#demo1').unLoad();
// Show Loader
Z.load({
msg: 'Loading...'
});
// Customize icon
Z.load({
icon: '<i class="fa fa-circle-o-notch fa-spin"></i>',
msg: 'Loading...'
});
// Remove Loader
Z.unLoad();