Text blinking jQuery

后端 未结 30 2015
我寻月下人不归
我寻月下人不归 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:40

    A plugin to blink some text sounds a bit like overkill to me...

    Try this...

    $('.blink').each(function() {
        var elem = $(this);
        setInterval(function() {
            if (elem.css('visibility') == 'hidden') {
                elem.css('visibility', 'visible');
            } else {
                elem.css('visibility', 'hidden');
            }    
        }, 500);
    });
    

提交回复
热议问题