JQuery background color animate not working

前端 未结 9 1830
温柔的废话
温柔的废话 2020-12-10 05:27

I want to change the background color of \'exampleDiv\' from the original white background to when I call the code below to immediate change the background yellow and then f

9条回答
  •  有刺的猬
    2020-12-10 05:47

    The jQuery UI has a highlight effect that does exactly what you want.

       $("exampleDiv").effect("highlight", {}, 5000);
    

    You do have some options like changing the highlight colour.

提交回复
热议问题