July 30, 201313 yr Why is the rollover image working with a delay? I can see the rollover image moving on top of the original image.This is not what we mean by rollover image. It needs to work instantly. <p><a class="test" href="contact"><span>test</span></a></p> .test{ display:block; height:49px; width:344px; background:url(/images/test.png) top; } .test:hover{ background-position:bottom; } .test span{ display:none; } I also tried this code: .test{ display:block; height:49px; width:344px; background-image:url(/images/test.png); } .test:hover{ background-position: 0 -49px; } .test span{ display:none } Edited July 30, 201313 yr by Dimii
July 30, 201313 yr you got a link so I can see this as it should work as you want so maybe a little tweak on the background position is needed depending on the img your using
July 31, 201313 yr Author Problem solved, thanks mate! I added .notransition { -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; -ms-transition: none !important; transition: none !important; } Edited July 31, 201313 yr by Dimii
Create an account or sign in to comment