Changelog
[4.1.2] - 2024-07-19
Changelog
[4.1.1] - 2021-09-01
module
to better support native ES module imports.Changelog
[4.1.0] - 2019-10-22
spinner-line-shrink
animation preset.Changelog
[4.0.0] - 2018-05-06
requestAnimationFrame
back to CSS keyframe animations
for better performance.style-src 'self';
Content Security Policy, animations are now defined
via an external CSS file rather than inserted dynamically.Add the following to your page to use one of the preset animations:
<link rel="stylesheet" href="node_modules/spin.js/spin.css"/>
You can also define custom opacity animations in your own CSS file and
select them via the animation
option.
opacity
and trail
options (define a custom opacity animation instead).fps
option (only used for IE 9).Changelog
[3.1.0] - 2017-11-26
fadeColor
option to customize the color that lines fade to (issue [#30]).Changelog
[3.0.0] - 2017-11-09
style-src 'self';
option
(issue [#115] and issue [#229]).requestAnimationFrame
.hwaccel
option.Note: version 3.0 does not change the public Spinner API, so if you are already using a module bundler such as Webpack or Rollup, upgrading should be as easy as adding the following ES6 module import:
import {Spinner} from 'spin.js';
Changelog
[2.3.2] - 2015-07-24
Changelog
[2.3.1] - 2015-06-15
version
property from Bower manifest (PR [#295]).Changelog
[2.1.2] - 2015-05-28