Text blinking jQuery

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

    This code will effectively make the element(s) blink without touching the layout (like fadeIn().fadeOut() will do) by just acting on the opacity ; There you go, blinking text ; usable for both good and evil :)

    setInterval(function() {
      $('.blink').animate({ opacity: 1 }, 400).animate({ opacity: 0 }, 600);
    }, 800);
    

提交回复
热议问题