wie man einen Blitz in JQuery animiert
$("#someElement").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
Splendid Skimmer
$("#someElement").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
$(document).ready(() => {
setInterval(() => {
$('p').fadeIn();
$('p').fadeOut();
}, 500);
});
var gamePattern = [];
var buttonColors = ["red", "blue", "green", "yellow"];
function nextSequence() {
var randomNumber = Math.floor(Math.random() * 4);
}
var randomChosenColour = buttonColors[randomNumber];
gamePattern.push(randomChosenColour);
$("#"+randomChosenColour).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
$("#"+randomChosenColour).fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
var buttonColours=["red", "blue", "green", "yellow"];
var gamePattern=[];
function nextSequence(){
var randomNumber = Math.floor(Math.random()*4);
var randomChosenColour= buttonColours[randomNumber];
gamePattern.push(randomChosenColour);
$("#randomChosenColour").fadeOut(100).fadeIn(100).fadeOut(100).fadeIn(100);
}