From c84761ec3dc55407d24809b013d7a604bd18b6d9 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 8 Jun 2017 16:08:03 +0200 Subject: [PATCH] done #1452 @1 --- js/libs/fluidbook/fluidbook.menu.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) 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 -- 2.39.5