Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spin.js

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spin.js - npm Package Versions

2

4.1.2

Diff

Changelog

Source

[4.1.2] - 2024-07-19

Changed

  • Removed some dead code left over from version 3.x.
theodorejb
published 4.1.1 •

Changelog

Source

[4.1.1] - 2021-09-01

Changed

  • Set package type to module to better support native ES module imports.
  • Improved website design.
theodorejb
published 4.1.0 •

Changelog

Source

[4.1.0] - 2019-10-22

Added

  • spinner-line-shrink animation preset.
theodorejb
published 4.0.0 •

Changelog

Source

[4.0.0] - 2018-05-06

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

  • 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).
theodorejb
published 3.1.0 •

Changelog

Source

[3.1.0] - 2017-11-26

Added

  • Support for custom box-shadows with corrected positioning (issue [#35]).
  • fadeColor option to customize the color that lines fade to (issue [#30]).
theodorejb
published 3.0.0 •

Changelog

Source

[3.0.0] - 2017-11-09

Added

  • Support for Content Security Policy style-src 'self'; option (issue [#115] and issue [#229]).
  • CONTRIBUTING.md file.

Changed

  • Rewritten in TypeScript.
  • Replaced dynamic CSS keyframe animations with requestAnimationFrame.
  • Unified animation logic in all browsers.
  • Moved internal functions out of Spinner instance.
  • Website now uses native range inputs rather than a polyfill, and doesn't depend on jQuery.
  • Distributed as a standard ES6 module (closes [#341]).

Fixed

  • Janky animation appearance in Microsoft Edge (issue [#342]).
  • Missing line with trail set to 100 in Internet Explorer (issue [#327]).
  • Spinner is not defined error in Angular (issue [#340]).

Removed

  • Useless hwaccel option.
  • IE 6-8 support and VML fallback since it isn't needed for IE 9+.
  • Minified files from bundle.
  • jQuery plugin (closes [#325]).
  • Bower/composer/component/spm support. Install from npm instead (recommended), or save spin.js file in your repo.

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';
timothygu
published 2.3.2 •

Changelog

Source

[2.3.2] - 2015-07-24

Fixed

  • Updated UMD header to protect against HTMLElement global pollution (PR [#300]).
timothygu
published 2.3.1 •

Changelog

Source

[2.3.1] - 2015-06-15

Changed

  • There were 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 (issue [#250]).

Fixed

  • Incorrect syntax in the example at the top of spin.js (PR [#294]).

Removed

  • Moot version property from Bower manifest (PR [#295]).
timothygu
published 2.1.2 •

Changelog

Source

[2.1.2] - 2015-05-28

Changed

  • Version 2.1.1 had a packaging error, so this release is now 2.1.2.
  • Standard CSS attributes are now preferred over vendor ones if supported.
  • Unified internal coding style across all files.
  • Website now uses the latest version of jQuery from its 1.x branch.
  • Updated documentation to note that the container element must use relative positioning (issue [#292]).

Added

  • spm support (PR [#232]).

Fixed

  • All broken examples
  • Bug on demo page where the direction setting wasn't reflected in the option object.
timothygu
published 2.1.1 •

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc