Text blinking jQuery

后端 未结 30 1866
我寻月下人不归
我寻月下人不归 2020-11-27 03:23

What is an easy way to make text blinking in jQuery and a way to stop it? Must work for IE, FF and Chrome. Thanks

30条回答
  •  失恋的感觉
    2020-11-27 03:51

    Combine the codes above, I think this is a good solution.

    function blink(selector){
        $(selector).animate({opacity:0}, 50, "linear", function(){
            $(this).delay(800);
            $(this).animate({opacity:1}, 50, function(){
            blink(this);
            });
            $(this).delay(800);
        });
    }
    

    At least it works on my web. http://140.138.168.123/2y78%202782

提交回复
热议问题