From: Vincent Vanwaelscappel Date: Wed, 29 Nov 2023 08:17:19 +0000 (+0100) Subject: wait #6518 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=10e1c0433d9fe615ef4497f76fe09aee411588e2;p=fluidbook-html5.git wait #6518 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 57065718..3657bb0f 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -678,7 +678,7 @@ FluidbookLinks.prototype = { this.fluidbook.resize.resizeLinks(); var $this = this; - $("#links .link[data-delay]").each(function () { + $(".link[data-delay]").each(function () { let $link = $(this); setTimeout(function () { $this.initDelayedLink($link); diff --git a/style/fluidbook.less b/style/fluidbook.less index ac026629..0553a047 100644 --- a/style/fluidbook.less +++ b/style/fluidbook.less @@ -296,17 +296,6 @@ body, html { pointer-events: none; } - &[data-delay] { - visibility: hidden; - opacity: 0; - transition: opacity 250ms; - - &.revealed { - visibility: visible; - opacity: 1; - } - } - &.rightclone { display: none; @@ -338,6 +327,16 @@ body, html { -o-transform-origin: 0 0 0; transform-origin: 0 0 0; + &[data-delay] { + visibility: hidden; + opacity: 0; + transition: opacity 0.4s; + + &.revealed { + visibility: visible; + opacity: 1; + } + } } @keyframes loader-spin {