Chiałbym zrobić płynne przejście pomiędzy dwoma tłami (dla strzałek), niestety poniższy kod nie działa:
#navigation ul li.parent { background-image: url( ../images/arrow1.png ); background-position: center bottom; background-repeat: no-repeat; transition: all 300ms ease-in; } #navigation ul li.parent:hover { background-image: url( ../images/arrow2.png ); background-position: center bottom; }
Natomiat jeśli zmienie pozycję strzałki przed hover to działa (center top):
#navigation ul li.parent { background-image: url( ../images/arrow1.png ); background-position: center top; background-repeat: no-repeat; transition: all 300ms ease-in; } #navigation ul li.parent:hover { background-image: url( ../images/arrow2.png ); background-position: center bottom; }
Co trzeba zrobić żeby przejście dla 1. kodu zadziałało bez zmieniania pozycji tła?