Spin.js v4.0.0 Release Notes
Release Date: 2018-05-06 // over 6 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
andtrail
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).
- Switched from