Fade the background-color of a span tag with JQuery

前端 未结 12 686
北恋
北恋 2020-12-09 16:20

I\'m trying to fade the background-color of a span tag using JQuery to emphasize when a change has occured. I was thinking the code would be someting like the following ins

12条回答
  •  长情又很酷
    2020-12-09 16:25

    It can be done with the color animation plugin. You'd then do something like

    $('span').animate({'backgroundColor' : '#ffff99'});
    

提交回复
热议问题