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 {