Closed himdel closed 6 years ago
...ah, found it, 4.0.0 introduced a css requirement, but doesn't mention it in the docs anywhere (almost).
Fix:
import {Spinner} from 'spin.js';
+import 'spin.js/spin.css';
window.Spinner = Spinner;
Leaving this open since this is not mentioned in the README.md at all, and no examples on the site mention it either.
(I do see that "Unless you plan to replace the preset opacity animations, load the spin.css file." now, but that's nowhere near "You need to do this for animation to work".)
@himdel Thanks for reporting this! I updated the readme and installation instructions to make the CSS requirement clearer.
Thanks @theodorejb :) Much clearer now :)
@theodorejb Just wanted to note that the landing page does not make this clear (I think it should be in the usage script) https://spin.js.org/
source: just got bitten by it :)
With 2.3.2 and 3.1.0, this code seems to work:
With 4.0.0, the exact same code displays a static spinner. No warnings or errors in the browser console, just a spinner that won't turn.
Any idea how to debug this? I tried adding
animation: 'spinner-line-fade-default'
orrotation: 1
but so far, no luck.The import is done as..