}
var $this = this;
- $(".contentLink[data-animations]").each(function () {
+ $("#currentDoublePage,#links").find('.contentLink[data-animations]').each(function () {
$this.animateContentLink($(this), true);
});
},
var defaults = ['ease', 'duration', 'delay'];
var firstDefaults = {};
- if (animations.length === 0) {
+ if (animations === undefined || animations === null || animations.length === 0) {
return;
}
if (animations[0]["autostart"] === undefined) {
from.backgroundPosition = to.backgroudPosition = animation.transformorigin;
from.backgroundSize = animation.type === 'zoomin' ? '100% 100%' : s + ' ' + s;
to.backgroundSize = animation.type === 'zoomout' ? '100% 100%' : s + ' ' + s;
- to.visibility = 'visible';
+ //to.visibility = 'visible';
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';