Skip to content
Gix075 edited this page Feb 17, 2015 · 1 revision

Data Methods

List of plugin data methods allowed.

stop()

To use stop() method you need to load plugin with animation option stop setted on false

$('#element').introLoader({
      animation: {
         options: {
             stop: false
         }
      }
});

Then you can use

var loader = $('#element').data('introLoader');
loader.stop();

destroy()

To destroy plugin simply use the following lines:

var loader = $('#element').data('introLoader');
loader.destroy();
Clone this wiki locally