开发者

pulsing menu items

开发者 https://www.devze.com 2022-12-08 07:01 出处:网络
I have a menu setup with the below css: a.menu:active { color: #000000; } a.menu:hover { color: #FFFFFF; background-color:#000000;

I have a menu setup with the below css:

a.menu:active
    {
        color: #000000;

    }

    a.menu:hover
    {
        color: #FFFFFF;
        background-color:#000000;
        text-decoration: none;
    }

I am looking for a way to make the background color of certain items pulse in and out.

Slow fade from one color to another. Or fade between classes continu开发者_运维问答ously.


http://jqueryui.com/demos/effect/

Look at pulsate


Look in to adopting a javascript framework such as jQuery.

You will find the $(selector).animate() function very useful for this type of thing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号