}
},
openingView: function (callback) {
- this.showOverlay();
var $this = this;
this.fluidbook.resize.resizeView();
this.fluidbook.tooltip.hideTooltip();
var mview = $('#view .mview:last');
- $(mview).show();
if (!Modernizr.ftouch) {
$(mview).find('.content').perfectScrollbar();
} else {
$(mview).find('.content').css({overflowY: 'auto'});
}
- var from = {y: -200, opacity: 0};
- var to = {
- y: 0, opacity: 1, onComplete: function () {
- if (callback != undefined) {
- callback();
- }
- $this.fluidbook.hideLoader();
- resize();
- }
- };
+ var from = {y: "-200px", opacity: 0};
+ var to = {y: "0px", opacity: 1};
if (mview.hasClass('fs')) {
- from.y = 0;
+ from.y = "0px";
+ } else {
+ this.showOverlay();
}
- TweenMax.fromTo($(mview), 0.5, from, to);
+
+ $(mview).addClass('notransition').css({opacity: from.opacity}).transform({translateY: from.y}).show().removeClass('notransition');
+ setTimeout(function () {
+ $(mview).css({opacity: to.opacity}).transform({translateY: to.y});
+ }, 20);
+
+ setTimeout(function () {
+ if (callback != undefined) {
+ callback();
+ }
+ $this.fluidbook.hideLoader();
+ resize();
+ }, 420);
},
displayResults: function (data, group, callback) {
}
,
openShare: function (p1, p2, callback) {
- this.fluidbook.share.openShare(p1,p2,callback);
+ this.fluidbook.share.openShare(p1, p2, callback);
},
openBookmark: function (p1, p2, callback) {
var view = this.fluidbook.bookmarks.getView();
}
if (mview.length > 0) {
- TweenMax.to(mview, 0.25, {
- autoAlpha: 0, onComplete: function () {
- $this.fluidbook.video.killVideosIn(mview);
- mview.remove();
- callback();
- }
- });
+ $(mview).css('opacity', 0);
+ setTimeout(function () {
+ $this.fluidbook.video.killVideosIn(mview);
+ mview.remove();
+ callback();
+ }, 420);
}
if (all) {
@import "00-import";
+.notransition {
+
+ -moz-transition: none !important;
+ -webkit-transition: none !important;
+ -ms-transition: none !important;
+ -o-transition: none !important;
+ transition: none !important;
+}
+
/* Screenshot */
.screenshot .mview {
overflow-y: hidden;
max-width: 600px;
width: 100%;
+ @menutransition:400ms;
+
+ -webkit-transition: all @menutransition;
+ -moz-transition: all @menutransition;
+ -ms-transition: all @menutransition;
+ -o-transition: all @menutransition;
+ transition: all @menutransition;
+
&[data-menu="multimedia"], &[data-menu="webvideo"], &[data-menu="video"] {
.caption {
height: 0;
/* multimedia */
-.mview .multimediaContainer {
- padding: 0;
- position: relative;
- &:after {
- content: '';
- position: absolute;
- z-index: 2;
+.mview {
+ .multimediaContainer {
+ padding: 0;
+ position: relative;
+ &:after {
+ content: '';
+ position: absolute;
+ z-index: 2;
+ width: 100%;
+ height: 100%;
+ top: 0;
+ left: 0;
+ pointer-events: auto;
+ }
+ }
+ img.multimedia {
+ position: relative;
+ z-index: 1;
width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- pointer-events: auto;
+ height: auto;
+ display: block;
+ }
+ .text {
+ padding: 20px;
+ white-space: pre-line;
+ text-align: left;
}
}
-.mview img.multimedia {
- position: relative;
- z-index: 1;
- width: 100%;
- height: auto;
- display: block;
-}
-
-/* texts */
-.mview .text {
- padding: 20px;
- white-space: pre-line;
- text-align: left;
-}
-
-/* Chapters */
+// Chapters
ul.chapters {
list-style: none;