Creates the autoplay plugin.
@param {object} element - lightGallery element
function(element) {

    this.el = element;

    this.core = window.lgData[this.el.getAttribute('lg-uid')];

    // Execute only if items are above 1
    if (this.core.items.length < 2) {
        return false;
    }

    this.core.s = Object.assign({}, autoplayDefaults, this.core.s);
    this.interval = false;

    // Identify if slide happened from autoplay
    this.fromAuto = true;

    // Identify if autoplay canceled from touch/drag
    this.canceledOnTouch = false;

    // save fourceautoplay value
    this.fourceAutoplayTemp = this.core.s.fourceAutoplay;

    // do not allow progress bar if browser does not support css3 transitions
    if (!this.core.doCss()) {
        this.core.s.progressBar = false;
    }

    this.init();

    return this;
}