From dcbcf39b97f3c8c06afc694567a0c861ec23cd56 Mon Sep 17 00:00:00 2001 From: Alvie Rahman Date: Sun, 11 Apr 2021 16:47:16 +0100 Subject: [PATCH] increase background flash animation duratioin --- src/game.js | 2 +- src/game_styles.css | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/game.js b/src/game.js index ebe7c5f..81172ef 100644 --- a/src/game.js +++ b/src/game.js @@ -105,7 +105,7 @@ function processClick(answer) { state.score += 1 ? state.options[answer] == state.answer : 0; console.log(state.options[answer] == state.answer ? 'correct' : 'incorrect') bodyHTML.classList.add(state.options[answer] == state.answer ? 'correct' : 'incorrect') - setTimeout(() => bodyHTML.classList = [], 200) + setTimeout(() => bodyHTML.classList = [], 500) console.log("got click: " + answer); updateState(); diff --git a/src/game_styles.css b/src/game_styles.css index b1ae889..599d245 100644 --- a/src/game_styles.css +++ b/src/game_styles.css @@ -7,11 +7,11 @@ } .correct { - animation: correct .2s; + animation: correct .5s; } .incorrect { - animation: incorrect .2s; + animation: incorrect .5s; } @keyframes correct {