Search code examples
jquerycssglow

How to make a flashing div?


I need a div to glow from a color to another and vice-versa. This is what I did using shadow animation jQuery Plugin: jsFiddle and it works well... but when I refresh the page it doesn't load and I get this error:

Maximum execution time of 30 seconds exceeded

How can I fix it?


Solution

  • I don't get an error, but just in case it works for you, try replacing

    function(){
        shadow_normal();
    }
    

    with

    function(){
        window.setTimeout(shadow_normal, 1);
    }
    

    and same with shadow_animar.