Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] pulsujący background diva
shpaque
post
Post #1





Grupa: Zarejestrowani
Postów: 651
Pomógł: 3
Dołączył: 31.01.2011
Skąd: Warszawa

Ostrzeżenie: (10%)
X----


Witajcie,
mam diva #hero, w nim diva .bg-neutron - on ma background-image sobie jakis - jak zrobic zeby obraz pulsowal?

  1. <style>
  2. @-webkit-keyframes pulse
  3. {
  4. 0% {webkit-transform: scale(1);}
  5. 50% {-webkit-transform: scale(1.1);}
  6. 100% {-webkit-transform: scale(1);}
  7. }
  8. #hero
  9. {
  10. animation: pulse 3s infinite;
  11. animation-direction: alternate;
  12. -webkit-animation-name: pulse;
  13. animation-name: pulse;
  14. }


tak mi pulsuje całe hero, jak dam "#hero .bg-neutron" nie dziala, jak dam sama klase ".bg-neutron" nie dziala - jak dam ".bg-neutron background-image" tez nie dziala...

Ten post edytował shpaque 20.12.2017, 16:36:05
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
shpaque
post
Post #2





Grupa: Zarejestrowani
Postów: 651
Pomógł: 3
Dołączył: 31.01.2011
Skąd: Warszawa

Ostrzeżenie: (10%)
X----


ok to teraz jest tak:

  1. .bg-neutron
  2. {
  3. display: block;
  4. }
  5.  
  6. @-webkit-keyframes pulse
  7. {
  8. 0% {transform: scale(1);}
  9. 50% {transform: scale(1.1);}
  10. 100% {transform: scale(1);}
  11. }
  12. .bg-neutron
  13. {
  14. animation: pulse 3s infinite;
  15. animation-direction: alternate;
  16. animation-name: pulse;
  17. }


tylko teraz co mam animowac? hero, klase czy bg w klasie? i czemu mam nadac blokowy diplay
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 28.12.2025 - 10:02