$this.showLinkAnimating = false;
}, 1000);
var mode = $(this).data('showmode');
+ var transition = $(this).data('showtransition') ? $(this).data('showtransition') : 'fadein';
var ids = $(this).data('showid').toString().split(',');
if (mode === 'hide') {
showid = ids;
}
+ let showTimeout = 10;
if (mode === 'exclusiveshow' || mode === 'shownext' || mode === 'shownextcycle' || mode === 'showprev' || mode === 'showprevcycle' || mode === 'pickrandom') {
-
var selector = 'div.link[data-hidden="1"].show';
var hide = [];
// Only hide links that are in the list
if (mode === 'exclusiveshow') {
hide = 'all';
}
+
+
+ var to=900;
+ showTimeout = (transition === 'fadeoutin') ? to : 10;
+ let hideTimeout = (transition === 'fadeoutin') ? 10 : to;
+
$.each(showid, function (k, id) {
selector += ':not([data-id$="' + id + '"])';
});
$(selector).each(function () {
- var timeout = (mode === 'shownext' || mode === 'shownextcycle' || mode === 'showprev' || mode === 'showprevcycle') ? 900 : 0;
+ let timeout = hideTimeout;
if ($(selector).is('[data-animation-hide]')) {
timeout = 0;
}
$this.hidePlacedLink(this, timeout);
}
});
+
+
}
var close = $(this).data('showclose');
+
+
$.each(showid, function (k, id) {
$('div.link[data-id$="' + id + '"]').each(function () {
var l = this;
}
$(l).addClass('show');
$this.updateAttachedLinks();
- }, 10);
+ }, showTimeout);
});
});
setTimeout(function () {
$(p).hide();
$this.updateAttachedLinks();
- }, 500);
+ }, 2000);
$this.updateAttachedLinks();
}, timeout);
},