Fade the background-color of a span tag with JQuery

前端 未结 12 659
北恋
北恋 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:44

    OH, I didn't realize you wanted to fade the color! OK, so you need to check out the jQuery color plugin:

    http://plugins.jquery.com/project/color

    https://github.com/jquery/jquery-color/

    And here's another helpful section of the jQuery docs site:

    http://docs.jquery.com/Release:jQuery_1.2/Effects#Color_Animations

    I've never actually done this so I won't try to give you code, but I imagine the color plugin will give you the functionality you need.

提交回复
热议问题