I want to use Spin.js to display a spinner. I can do it but i can't stop it.
My code :
function startSpin() {
var target = document.getElementById('demarrer');
new Spinner().spin(target);
setTimeout("dummyFunc()", 4000);
}
function dummyFunc() {
console.log("bouh");
}
What I have to call in order to stop the spinner ?
I have tried :
- Spinner().stop(target);
- Spinner().spin(target).stop();
- Spinner().stop();
And no results... ='(
Thx !