Spinners are generated by using the spin method provided by the indicators module.  The spin method takes two arguments, target and size. target is expected to be a selector indicating which element to center the spinner on, size specifies the size of the image as a factor of the base size, which is 32 pixels.

The spin method has no return value, but can be stopped by triggering a spinner-stop event on the element it is attached to.

An example call might look like this: var spinner = indicators.spin('.canvas-demo.demo-1'); and an example stop call will then look like this: $('.canvas-demo.demo-1').trigger('spin-stop');

The spinner will automatically center itself in the element matching the provided selector. It is possible to use several spinners in a page. Press any of the areas below to stop the spinner!