mirror of
https://github.com/alvierahman90/capitals_quiz.git
synced 2024-11-23 17:59:55 +00:00
increase background flash animation duratioin
This commit is contained in:
parent
279f0d88ba
commit
dcbcf39b97
@ -105,7 +105,7 @@ function processClick(answer) {
|
|||||||
state.score += 1 ? state.options[answer] == state.answer : 0;
|
state.score += 1 ? state.options[answer] == state.answer : 0;
|
||||||
console.log(state.options[answer] == state.answer ? 'correct' : 'incorrect')
|
console.log(state.options[answer] == state.answer ? 'correct' : 'incorrect')
|
||||||
bodyHTML.classList.add(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);
|
console.log("got click: " + answer);
|
||||||
updateState();
|
updateState();
|
||||||
|
@ -7,11 +7,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.correct {
|
.correct {
|
||||||
animation: correct .2s;
|
animation: correct .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
.incorrect {
|
.incorrect {
|
||||||
animation: incorrect .2s;
|
animation: incorrect .5s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes correct {
|
@keyframes correct {
|
||||||
|
Loading…
Reference in New Issue
Block a user