increase background flash animation duratioin

This commit is contained in:
Akbar Rahman 2021-04-11 16:47:16 +01:00
parent 279f0d88ba
commit dcbcf39b97
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -7,11 +7,11 @@
}
.correct {
animation: correct .2s;
animation: correct .5s;
}
.incorrect {
animation: incorrect .2s;
animation: incorrect .5s;
}
@keyframes correct {