fgnass / spin.js

A spinning activity indicator
http://spin.js.org
MIT License
9.3k stars 1.02k forks source link

How Can I Remove Spinner In Spin.js? #390

Closed YashpalModi closed 4 months ago

YashpalModi commented 8 months ago

How Can I Remove Spinner In Spin.js (Not Stop Or Disabled But Remove Spinner Completly)?

theodorejb commented 4 months ago

As the documentation states, the stop() method removes the UI elements from the DOM, so the spinner is completely removed. In your own code, if you don't want to keep a reference to the Spinner instance after stopping it (e.g. you don't need to start the animation again), you could set the variable to undefined. This probably isn't necessary in most cases, though.