apotd
01-13-2013, 02:51 PM
I'm trying to use a transition when I hover over a menu item. When I hover over a menu item a bullet appears next to it (I used a background to do this). But when I try to use transition in my css, the bullet comes sliding in from the top to the actually place where it should be. I just want it to appear via the transition, not to slide in, what am I doing wrong?
ul.navList a {
text-decoration: none;
color: #0a0a0a;
padding: 5px 20px 5px 20px;
background: none;
}
ul.navList a:hover {
background: url('../images/bullet.png') left center no-repeat;
-webkit-transition: background 1s;
-moz-transition: background 1s;
-o-transition: background 1s;
-ms-transition: background 1s;
transition: background 1s;
}
ul.navList a {
text-decoration: none;
color: #0a0a0a;
padding: 5px 20px 5px 20px;
background: none;
}
ul.navList a:hover {
background: url('../images/bullet.png') left center no-repeat;
-webkit-transition: background 1s;
-moz-transition: background 1s;
-o-transition: background 1s;
-ms-transition: background 1s;
transition: background 1s;
}