We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8367494 commit 8070ccbCopy full SHA for 8070ccb
games/human_benchmark/js/number_memory.js
@@ -63,11 +63,18 @@ $(function () {
63
64
// Start the progress bar animation
65
$progressBar.width('100%');
66
- $progressBar.animate({width: '0%'}, duration, 'linear');
+ $progressBar.css({
67
+ 'transition': `width ${duration}ms linear`,
68
+ 'width': '0%'
69
+ });
70
timer = setTimeout(() => {
71
$("#number-area").empty();
72
$("#answer-input").show().focus();
73
$("#submit-answer").show();
74
75
+ 'transition': `none`,
76
+ 'width': '100%'
77
78
}, duration);
79
}, 1000);
80
}
0 commit comments