jQuery “blinking highlight” effect on div?

后端 未结 15 1128
囚心锁ツ
囚心锁ツ 2020-12-04 09:24

I\'m looking for a way to do the following.

I add a

to a page, and an ajax callback returns some value. The
is fill
15条回答
  •  孤城傲影
    2020-12-04 09:56

    For those who do not want to include the whole of jQuery UI, you can use jQuery.pulse.js instead.

    To have looping animation of changing opacity, do this:

    $('#target').pulse({opacity: 0.8}, {duration : 100, pulses : 5});
    

    It is light (less than 1kb), and allows you to loop any kind of animations.

提交回复
热议问题