Hello everyone, would you like to know if I can have more than one transition in the same tag? Why implement the transitions for properties but it does not work? * Or this is because I have not set the property values before.
.trans {
background: #F00;
height: 250px;
opacity: 1;
-webkit-transition: opacity .25s 1s ease-in-out;
-moz-transition: opacity .25s 1s ease-in-out;
-ms-transition: opacity .25s 1s ease-in-out;
-o-transition: opacity .25s 1s ease-in-out;
transition: opacity .25s 1s ease-in-out;
-webkit-transition: height 1.25s ease-in-out;
-moz-transition: height 1.25s ease-in-out;
-ms-transition: height 1.25s ease-in-out;
-o-transition: height 1.25s ease-in-out;
}
.trans:hover {
height: 10px;
opacity: .5;
}
Example with the code. link
Thank you in advance.