Text blinking jQuery

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

    I feel the following is of greater clarity and customization than other answers.

        var element_to_blink=$('#id_of_element_to_blink');
        var min_opacity=0.2;
        var max_opacity=1.0;
        var blink_duration=2000;
        var blink_quantity=10;
        var current_blink_number=0;
    
        while(current_blink_number

提交回复
热议问题