It is necessary that the text flickered in different colors. But he ended up just blue. I do not understand, I tried already in different ways. It still does not come out. setTimout should start the function with a delay. As a result, the text is just blue. How to correctly write it in the code? Thank!
$(document).on('ready', function (){ var link = $('.flashing'); function painting() { link.css("color", "yellow"); }; function painting2() { link.css("color", "red"); }; function painting3() { link.css("color", "blue"); }; setInterval(function(){ painting(); setTimeout(painting2(), 700); setTimeout(painting3(), 1400); }, 1000); });