alexanderdickson / throbbage

A cross browser throbber library using CSS animation but falling back to JS if the browser sucks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throbbage

A cross browser throbber library using CSS animation but falling back to JS if the browser sucks.

###Usage###

// First argument is a reference to a container element in which you
// wish to add a throbber to.
// Second argument is the duration in which you want the throbber to
// complete one full circle.
var throbber = throbbage(document.getElementById("container"), 1000);

// Start the throbber.
throbber.play();

// Pause the throbber.
throbber.pause();

The container element will be the throbber's boundary. To clean up the throbber, simply remove the container element.

About

A cross browser throbber library using CSS animation but falling back to JS if the browser sucks


Languages

Language:JavaScript 92.0%Language:CSS 8.0%