Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5
[CSS3] Problem z transition ?
#1
Kiedy mam dwa transitions na jednego DIV'a to tylko jeden dziala.. w moim przypadku dziala tylko height, a opacity nie dziala... Jestem prawie 100% pewien ze mozna miec dwa rozne transitions w jednym div'ie. POMOCY!

o to kod:

Kod:
#header #user_panel {
    width: 300px;
    
    height: 35px;
    transition: height .50s ease-in-out;
    -moz-transition: height .50s ease-in-out;
    -webkit-transition: height .50s ease-in-out;
    
    background: black;
    
    opacity: 0.1;
    transition: opacity .50s ease-in-out;
    -moz-transition: opacity .50s ease-in-out;
    -webkit-transition: opacity .50s ease-in-out;
    float: right;
    margin-right: 25px;
    
}

Kod:
#header #user_panel:hover {
    width: 300px;
    
    height: 100px;
    transition: height .50s ease-in-out;
    -moz-transition: height .50s ease-in-out;
    -webkit-transition: height .50s ease-in-out;
    
    background: black;
    
    opacity: 0.5;
    transition: opacity .50s ease-in-out;
    -moz-transition: opacity .50s ease-in-out;
    -webkit-transition: opacity .50s ease-in-out;
    float: right;
    margin-right: 25px;
    
}
Odpowiedz
#2
Po co na forum czekać na odpowiedź, skoro pierwszy link w google odpowiada na twoje pytanie?

http://www.css3.info/preview/css3-transitions/

The Syntax:
transition: <transition> [, <transition>]*

<transition> = <transition-property> <transition-duration> <transition-timing-function> <transition-delay>

As with the individual transition-* properties, the transition shorthand property can be used to define multiple transitions, using a comma separated list.
Odpowiedz
#3
Zadzialalo dzieki Wink

PS.

Szukalem w google, naprawde. Zwykle webmastertalk to ostatnie miejsce gdzie wchodze o pomoc .
Odpowiedz


Podobne wątki…
Wątek: Autor Odpowiedzi: Wyświetleń: Ostatni post
  Problem z transition w css3 ziomalnb 2 3,147 19-07-2013, 21:17
Ostatni post: MatixYo
  Css3 właściwość float-offset. finito 1 2,372 11-02-2013, 03:12
Ostatni post: Kartofelek
  HTML5/CSS3 Yavimava 3 3,296 08-12-2011, 03:59
Ostatni post: Kartofelek
  CSS3 PIE - problem SkuterPL 4 3,444 09-10-2011, 03:54
Ostatni post: SkuterPL
  Sposób na CSS3 w IE przemooomax 2 2,698 18-12-2010, 20:07
Ostatni post: przemooomax

Skocz do:


Użytkownicy przeglądający ten wątek:
Sponsorzy i przyjaciele
SeoHost.pl