From: Vincent Vanwaelscappel Date: Thu, 8 Jun 2017 14:08:03 +0000 (+0200) Subject: done #1452 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c84761ec3dc55407d24809b013d7a604bd18b6d9;p=fluidbook-html5.git done #1452 @1 --- diff --git a/js/libs/fluidbook/fluidbook.menu.js b/js/libs/fluidbook/fluidbook.menu.js index 2a914b83..e63e56a3 100644 --- a/js/libs/fluidbook/fluidbook.menu.js +++ b/js/libs/fluidbook/fluidbook.menu.js @@ -84,7 +84,7 @@ FluidbookMenu.prototype = { } }, openingView: function (callback) { - $("#viewOverlay").show(); + this.showOverlay(); var $this = this; this.fluidbook.resize.resizeView(); this.fluidbook.tooltip.hideTooltip(); @@ -389,7 +389,7 @@ FluidbookMenu.prototype = { } , closeView: function (callback, all, animate) { - $("#viewOverlay").hide(); + this.hideOverlay(); var $this = this; if (all == undefined) { all = false; @@ -586,4 +586,18 @@ FluidbookMenu.prototype = { }); }); }, + + hideOverlay: function () { + $("#viewOverlay").css('opacity', 0); + setTimeout(function () { + $("#viewOverlay").hide(); + }, 400); + }, + + showOverlay: function () { + $("#viewOverlay").css('opacity', 0).show(); + setTimeout(function () { + $("#viewOverlay").css('opacity', 1); + }, 10); + } }; \ No newline at end of file