From: Vincent Vanwaelscappel Date: Mon, 13 Jun 2022 13:05:02 +0000 (+0200) Subject: wait #5318 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e79bff94453e2be5acb075e5ab9f345bf8cf461e;p=Animations.git wait #5318 @0.75 --- diff --git a/PPD/Map1/Map1.zip b/PPD/Map1/Map1.zip index b11dcd2..b0d0d86 100644 Binary files a/PPD/Map1/Map1.zip and b/PPD/Map1/Map1.zip differ diff --git a/RedbullShopper101/TruthOrMyth/TruthOrMyth.zip b/RedbullShopper101/TruthOrMyth/TruthOrMyth.zip index 4c4182e..b2fca25 100644 Binary files a/RedbullShopper101/TruthOrMyth/TruthOrMyth.zip and b/RedbullShopper101/TruthOrMyth/TruthOrMyth.zip differ diff --git a/RedbullShopper101/TruthOrMyth/closeread.svg b/RedbullShopper101/TruthOrMyth/closeread.svg new file mode 100644 index 0000000..c7dc799 --- /dev/null +++ b/RedbullShopper101/TruthOrMyth/closeread.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/RedbullShopper101/TruthOrMyth/index.html b/RedbullShopper101/TruthOrMyth/index.html index c1d41f4..55e699a 100644 --- a/RedbullShopper101/TruthOrMyth/index.html +++ b/RedbullShopper101/TruthOrMyth/index.html @@ -60,6 +60,13 @@ #buttons a { position: absolute; cursor: pointer; + opacity: 0; + transition: opacity 250ms; + } + + #buttons a.show{ + opacity: 1; + transition: opacity 250ms; } #truth, #myth { @@ -81,19 +88,28 @@ left: 8px; } - #listen{ - left:399px; + #closeread { + background-image: url("closeread.svg"); + width: 30px; + height: 30px; + background-size: 100% auto; + top: 100px; + left: 640px; + } + + #listen { + left: 399px; } - #prev,#next{ + #prev, #next { width: 133px; height: 32px; top: 373px; left: 375px; } - #next{ - left:530px; + #next { + left: 530px; } #score { @@ -115,6 +131,7 @@ + diff --git a/RedbullShopper101/TruthOrMyth/truthormyth.js b/RedbullShopper101/TruthOrMyth/truthormyth.js index f481d1c..f43f376 100644 --- a/RedbullShopper101/TruthOrMyth/truthormyth.js +++ b/RedbullShopper101/TruthOrMyth/truthormyth.js @@ -42,6 +42,12 @@ $(function () { return false; }); + $('#closeread').on('click', function () { + setActiveScreen(window.activeScreen - 1); + return false; + }); + + $('#listen').on('click', function () { playAudio(window.activeScreen); return false; @@ -67,9 +73,13 @@ function setActiveScreen(i) { $('body').attr('data-screen', i); $('[data-screens]').each(function () { if ($(this).data('screens').toString().split(',').indexOf(i.toString()) >= 0) { - $(this).show(); + $(this).addClass('show').show(); } else { - $(this).hide(); + var t=this; + $(this).removeClass('show'); + setTimeout(function(){ + $(t).hide(); + },500); } }); setTimeout(function () {