CSS3 transition of background-color

Posted by jean-guy on Stack Overflow See other posts from Stack Overflow or by jean-guy
Published on 2010-12-10T16:56:06Z Indexed on 2012/06/24 3:17 UTC
Read the original article Hit count: 143

Filed under:

I'm trying to make a transition effect with background-color when hovering menu items but it does not work. Here is my CSS code:

#content #nav a:hover {
color: black;
background-color: #AD310B;
    /* Firefox */
    -moz-transition: all 1s ease-in;
    /* WebKit */
    -webkit-transition: all 1s ease-in;
    /* Opera */
    -o-transition: all 1s ease-in;
    /* Standard */
    transition: all 1s ease-in;
}

The #nav div is a menu ul list of items.

Thank you for your help.

© Stack Overflow or respective owner

Related posts about css3