var duration = 0.5;
var tweenmax = true;
-
animation = $.extend({}, globalDefault, defaultParams, animation);
if (animation.duration !== undefined) {
if (animation.type === 'translatefrom') {
from.display = 'none';
to.display = 'block';
+ to.visibility='visible';
from.x = animation.x;
from.y = animation.y;
} else if (animation.type === 'translate') {
from.display = 'none';
to.display = 'block';
+ to.visibility='visible';
from.x = 0;
from.y = 0;
to.x = animation.x;
from.backgroundPosition = to.backgroudPosition = '50% 50%';
from.backgroundSize = animation.type === 'zoomin' ? '100% 100%' : s + ' ' + s;
to.backgroundSize = animation.type === 'zoomout' ? '100% 100%' : s + ' ' + s;
+ to.visibility='visible';
if (Modernizr.firefox) {
to.force3D = true;
to.rotation = 0.01;
} else if (animation.type === 'fadein') {
from.display = 'none';
to.display = 'block';
+ to.visibility='visible';
from.opacity = 0;
to.opacity = 1;
} else if (animation.type === 'fadeout') {
if (animation.type === 'reveal') {
from.display = 'none';
to.display = 'block';
+ to.visibility='visible';
}
var top = 0;
link.hide();
}
if (tweenmax) {
- console.log(from, to);
TweenMax.fromTo(linkElement, duration, from, to);
}
this.fluidbook.networkControl.pause((to.delay + duration + 0.5) * 1000);
var delay = 800;
$("#links .link:not(.revealed):visible, .clinks [data-animations]:not(.revealed)").each(function () {
var rect = $(this).get(0).getBoundingClientRect();
+ if (rect.top === 0 && rect.left === 0 && rect.width === 0 && rect.height === 0) {
+ return;
+ }
if (rect.top < $this.fluidbook.resize.hh) {
+ console.log($(this).attr('id'), rect.top, $this.fluidbook.resize.hh);
$(this).addClass('revealed');
if ($(this).find('a.displayArea').length > 0) {
$this.fluidbook.links.animateLink(this, delay);
},
refreshFooterNavigation: function (page) {
- if(!this.enabled){
+ if (!this.enabled) {
return;
}
if (page === undefined) {
}
}
+ .link.contentLink[data-animation-hide] {
+ display: block;
+ visibility: hidden;
+ }
#helpView .interface {
display: block;
}
}
}
+
.mview[data-menu="index"] {
.content {
overflow-x: auto;
}
- .ps__rail-x{
+
+ .ps__rail-x {
display: block;
}
}
opacity: 0;
transition: opacity 250ms;
- .thumb .number{
- padding-top:10px;
+ .thumb .number {
+ padding-top: 10px;
}
.here {