Click here to Skip to main content
15,889,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
So, I know how to make it so the background of the whole body flashes color. But how do I make it so all the text on the page flashes color?

Here[^] is the background code.

If anyone could help, that would be great. :)
Posted

1 solution

Try
C#
$('.divLocal').each(function() {
    var elem = $(this);
    setInterval(function() {
        if (elem.css('visibility') == 'hidden') {
            elem.css('visibility', 'visible');
        } else {
            elem.css('visibility', 'hidden');
            elem.css('color', 'red');
        }
    }, 500);
});


This will make the text flash. Just change the color randomly to give a multi-color effect.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900