Edit in JSFiddle

<div id="div1"></div>
<input id="btn1" type="button" value="click" />
$(function () {
    $("#btn1").click(function () {
        spinner = new Spinner().spin($("#div1")[0]);
        setTimeout(function () {
            spinner.stop();
        }, 1000);
    });
});