});
$("#pages,#fluidbook").css({height: max, maxHeight: max});
-
+ var scrollTo = $("#scroll").scrollTop();
+ $("#scroll").scrollTop(0).css('transform', 'translateY(' + (-scrollTo) + 'px)').addClass('gototop');
setTimeout(function () {
- TweenLite.to("#scroll", $this.fluidbook.pagetransitions.getTransitionDuration(page), {
- scrollTo: 0,
- ease: Power2.easeInOut
- });
+ $("#scroll").addClass('animate').css('transform', 'translateY(0px)');
+ setTimeout(function () {
+ $("#scroll").removeClass('gototop').removeClass('animate').css('transform', '');
+ }, $this.fluidbook.pagetransitions.getTransitionDuration(page)*1000);
}, 10);
-
},
afterTransition: function (page) {