Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS]CSS3 Transitions - nie działa
AboutMe
post 19.12.2012, 12:08:36
Post #1





Grupa: Zarejestrowani
Postów: 261
Pomógł: 0
Dołączył: 24.02.2008

Ostrzeżenie: (0%)
-----


Witam,

Chiałbym zrobić płynne przejście pomiędzy dwoma tłami (dla strzałek), niestety poniższy kod nie działa:


  1. #navigation ul li.parent { background-image: url( ../images/arrow1.png ); background-position: center bottom; background-repeat: no-repeat; transition: all 300ms ease-in; }
  2. #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):


  1. #navigation ul li.parent { background-image: url( ../images/arrow1.png ); background-position: center top; background-repeat: no-repeat; transition: all 300ms ease-in; }
  2. #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?

Ten post edytował AboutMe 19.12.2012, 12:12:16
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 14.08.2025 - 16:18