@theodorejb theodorejb released this May 6, 2018 · 2 commits to master since this release

Assets 2

This release switches 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. The opacity and trail options are no longer necessary and have been removed.

Since IE 9 doesn't support keyframe animations, it is not compatible with spin.js v4, and the fps option (which was only used for IE 9) has been removed.

This release also sets a transparent shadow by default to resolve aliased lines in certain browsers (issue #355).

@theodorejb theodorejb released this Nov 26, 2017 · 10 commits to master since this release

Assets 2
  • Added support for custom box-shadows with corrected positioning (issue #35)
  • Added fadeColor option for customizing the color that lines fade to (issue #30)

@theodorejb theodorejb released this Nov 10, 2017 · 19 commits to master since this release

Assets 2
  • Rewritten in TypeScript
  • Distributed as a standard ES6 module (closes #341, fixes #340)
  • Replaced dynamic CSS keyframe animations with requestAnimationFrame
    • This adds support for Content Security Policy "style-src 'self';" option (resolves #115, resolves #229)
    • Fixes janky animation appearance in Microsoft Edge (resolves #342)
    • Fixes missing line with trail set to 100 in IE (resolves #327)
    • Animation logic is now unified in all browsers
  • Removed useless hwaccel option
  • Dropped IE 6-8 support and removed VML fallback since it isn't needed for IE 9+
  • Moved internal functions out of Spinner instance
  • Removed minified files from bundle
  • Removed jQuery plugin (closes #325)
  • Dropped bower/composer/component/spm support. Install from npm instead (recommended), or save spin.js file in your repo.
  • Updated website to use native range inputs rather than polyfill, and remove jQuery usage
  • Added CONTRIBUTING.md file

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';

@theodorejb theodorejb released this Nov 9, 2017 · 24 commits to master since this release

Assets 2
  • The UMD header is updated to protect against HTMLElement global pollution. See PR #300. (Thanks @mikesherov)

@theodorejb theodorejb released this Nov 9, 2017 · 27 commits to master since this release

Assets 2
  • There have been multiple tagging issues that produced 2.1.3, 2.2.0, and 2.3.0. In the spirit of SemVer, this release is now 2.3.1.
  • The minified spin.min.js is now distributed in the repo, making Bower usage easier. See issue #250.
  • Fix an incorrect comment in the file header. See PR #294. (Thanks @msheakoski)
  • Remove moot version property from Bower manifest. See PR #295. (Thanks @kkirsche)

@theodorejb theodorejb released this Nov 9, 2017 · 36 commits to master since this release

Assets 2
  • There has been a packaging error in the last release. This release rectifies that.

@theodorejb theodorejb released this Nov 9, 2017 · 37 commits to master since this release

Assets 2
  • Spin.js now has a new maintainer: @TimothyGu (that's me ;)!
  • The documentation is updated to note that the container element must use relative positioning. See issue #292.
  • The examples are all fixed.
  • The demo page had a bug where the direction setting does not reflect in the option object.
  • The website now uses the latest version of jQuery from its 1.x branch.
  • Standard CSS attributes are now preferred over vendor ones if they are supported.
  • spm support is now added. See PR #232. (Thanks @afc163)
  • Internally the coding style is now unified across all files.

@theodorejb theodorejb released this Nov 9, 2017 · 76 commits to master since this release

Assets 2

@theodorejb theodorejb released this Nov 9, 2017 · 83 commits to master since this release

Assets 2
  • Remove unused variable and function
  • Fixed require call in jQuery plugin

@theodorejb theodorejb released this Nov 9, 2017 · 91 commits to master since this release

Assets 2
  • Position is now set even if now target is given. See issue #218. (Thanks @tablatronix)