this.fluidbook.datas.soundTheme = '';
},
+ triggerTransition: function (page) {
+ this.fluidbook.pagetransitions.getTurningPages(page);
+
+ },
+
beforeTransition: function (page) {
+ $('#pages .mf-nav').css({opacity: 0});
+ var $this = this;
var dimensions = this.fluidbook.loader.getPageDimensions(page);
- $('#pages .mf-nav').css('opacity', 0);
var max = Math.max(dimensions.height, $("#currentDoublePage").outerHeight());
$("#nextDoublePage .page, #nextDoublePage").css({
height: dimensions.height,
$("#pages,#fluidbook").css({height: max, maxHeight: max});
- TweenLite.to("#scroll", this.fluidbook.pagetransitions.getTransitionDuration(page), {scrollTo: 0});
+ setTimeout(function () {
+ TweenLite.to("#scroll", $this.fluidbook.pagetransitions.getTransitionDuration(page), {
+ scrollTo: 0,
+ ease: Power2.easeInOut
+ });
+ }, 10);
+
},
afterTransition: function (page) {
},
pageTransition2DPortrait: function (pageNr) {
this.transitionning = true;
+
+ if (this.fluidbook.mobilefirst.enabled) {
+ this.fluidbook.mobilefirst.triggerTransition(pageNr);
+ }
+
var $this = this;
var turning = this.getTurningPages(pageNr);
$("#pages").append('<div id="nextDoublePage" class="doublePage _2d axis_' + this.transitionAxis + ' ' + turning.nextFromClass + '"></div>');
$this.beforeTransition(pageNr, 2, turning);
$("#currentDoublePage").addClass('axis_' + $this.transitionAxis).addClass('_2d').addClass(turning.currentToClass);
$(doublePage).removeClass(turning.nextFromClass).one($this.fluidbook.support.getTransitionEndEvent(), function () {
- if ($this.transitionning == false) {
+ if ($this.transitionning === false) {
return;
}
$("#currentDoublePage").remove();
/* Espaces forcés */
+.portrait #pages, .portrait .doublePage.page, .page, .doublePage._3d {
+ width: @book-page-width;
+ max-width: @book-page-width;
+ height: @book-page-height;
+ max-height: @book-page-height
+}
+
+@book-page-width-double: @book-page-width*2;
+
+.doublePage, #pages, #links, #searchHighlights {
+ width: @book-page-width-double;
+ max-width: @book-page-width-double;
+ height: @book-page-height;
+ max-height: @book-page-height;
+
+ .mobilefirst & {
+ width: @book-page-width;
+ max-width: @book-page-width;
+ }
+}
+
+.landscape {
+ .doublePage {
+ &._2d.axis_x {
+ &.next {
+ transform: translate3d(@book-page-width-double, 0, 0, 0);
+ }
+
+ &.prev {
+ transform: translate3d(-@book-page-width-double, 0, 0, 0);
+ }
+ }
+ }
+}
+
+.portrait {
+ .doublePage {
+ &._2d.axis_x {
+ &.next {
+ transform: translate3d(@book-page-width, 0, 0);
+ }
+
+ &.prev {
+ transform: translate3d(-@book-page-width, 0, 0);
+ }
+ }
+ }
+}
+
+.doublePage {
+ &._2d.axis_y {
+ &.next {
+ transform: translate3d(0, @book-page-height, 0);
+ }
+
+ &.prev {
+ transform: translate3d(0, -@book-page-height, 0);
+ }
+ }
+}
+
+.doublePage._3d {
+ left: @book-page-width;
+}
+
+#links.right {
+ left: -@book-page-width;
+}
+
#currentDoublePage {
pointer-events: none;
}
+.landscape .page.right {
+ left: @book-page-width
+}
+
.page {
overflow: hidden;
position: absolute;
z-index: 0;
}
+ .mobilefirst & {
+ display: none;
+ }
+
}
a.bookmark {
touch-action: none !important;
}
}
+
+ .page {
+ overflow: visible;
+ }
+
+ .doublePage {
+ box-shadow: 0 0 30px rgba(0, 0, 0, @shadow-opacity*0.6);
+ }
+
+ #pages {
+ overflow: visible;
+ }
+
+ .portrait {
+ .doublePage {
+ &._2d.axis_x {
+ opacity: 0;
+ @transition-margin: 200;
+ transition-timing-function: ease-in-out;
+
+ &.next {
+ transform: translate3d(unit(@book-page-width+@transition-margin, px), 0, 0);
+ }
+
+ &.prev {
+ transform: translate3d(unit(-1*(@book-page-width+@transition-margin), px), 0, 0);
+ }
+ }
+ }
+ }
}
+
.mf-nav {
position: absolute;
left: 0;
color: @page-number-color;
font-size: unit(20*@css-scale, px);
font-weight: 600;
- transition: opacity 0.25s;
+ transition: opacity 0.1s;
opacity: 0;
@media @small {