Closed orionrush closed 6 years ago
The class is configurable, read the docs: http://spin.js.org/
import {Spinner} from 'spin.js';
var opts = {
className: 'spinner', // The CSS class to assign to the spinner
};
var target = document.getElementById('foo');
var spinner = new Spinner(opts).spin(target);
I was working with spin-js in the WordPress admin for a plugin i am developing. It looks like you use the same class as them, (spinner) so spin-js elements are being overridden, and the wordpress gif isn't appearing either. I'm just going to revert to the native solution for simplicity, but in other frameworks you might have collisions. Perhaps prefix it?