if (mode === 'exclusiveshow' || mode === 'shownext' || mode === 'shownextcycle' || mode === 'pickrandom') {
var selector = 'div.link[data-hidden="1"].show';
- $.each(showid, function (k,id) {
+ $.each(showid, function (k, id) {
selector += ':not([data-id$="' + id + '"])';
});
$(selector).each(function () {
var close = $(this).data('showclose');
console.log(showid);
- $.each(showid, function (k,id) {
+ $.each(showid, function (k, id) {
$('div.link[data-id$="' + id + '"]').each(function () {
var l = this;
if (close !== 'none') {
from.y = 0;
to.x = animation.x;
to.y = animation.y;
+
+ } else if (animation.type === 'zoomin' || animation.type === 'zoomout') {
+ var s = (100 * animation.scale) + "%";
+ from.backgroundPosition = to.backgroudPosition = '50% 50%';
+ from.backgroundSize = animation.type === 'zoomin' ? '100% 100%' : s + ' ' + s;
+ to.backgroundSize = animation.type === 'zoomout' ? '100% 100%' : s + ' ' + s;
+ if(Modernizr.firefox) {
+ to.force3D=true;
+ to.rotation = 0.01;
+ from.rotation = 0.01;
+ }
} else if (animation.type === 'fadein') {
from.display = 'none';
to.display = 'block';
if (from.display !== undefined && from.display === 'none') {
link.hide();
}
+ console.log(from, to);
if (tweenmax) {
TweenMax.fromTo(linkElement, duration, from, to);
}