Skip to content

Instantly share code, notes, and snippets.

@ghooghe
Created June 11, 2013 15:19
Show Gist options
  • Select an option

  • Save ghooghe/5757738 to your computer and use it in GitHub Desktop.

Select an option

Save ghooghe/5757738 to your computer and use it in GitHub Desktop.
Loader with text/font caracters
// Prepare loader
var loaderSymbols = ['', '', ''],
loaderEl = $(blockingOverlaySelector + ' span'),
loaderIndex = 0,
loader = function() {
loaderEl.html(loaderSymbols[loaderIndex]);
loaderIndex = loaderIndex < loaderSymbols.length - 1 ? loaderIndex + 1 : 0;
};
setInterval(loader, 350);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment