92
rated 0 times
[
96]
[
4]
/ answers: 1 / hits: 16768
/ 8 Years ago, tue, april 19, 2016, 12:00:00
so I am making a simon says game. This function displays the current sequence. The problem with it right now is that it doesn't really go in a nice sequence, it kind of does everything at once. Say the colors are blue, red, and yellow, they will all go off at the same time rather than in sequence. How can I fix this?
var displaySequence = function(){
compSequence.forEach(function(color){
$(# + color).fadeTo(300, 0.5).fadeTo(300, 1.0);
})
}
More From » jquery