Spin.js v4.0.0 Release Notes

Release Date: 2018-05-06 // about 4 years ago
  • ๐Ÿ”„ Changed

    • Switched from requestAnimationFrame back to CSS keyframe animations ๐ŸŽ for better performance.
    • In order to preserve compatibility with the ๐Ÿ’… 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.

    ๐Ÿ›  Fixed

    • 0๏ธโƒฃ A transparent shadow is now set by default to resolve aliased lines in ๐Ÿ’ป certain browsers (issue [#355]).

    โœ‚ Removed

    • opacity and trail options (define a custom opacity animation instead).
    • ๐Ÿ‘Œ Support for Internet Explorer 9 (it doesn't support keyframe animations).
    • fps option (only used for IE 9).