2
Hello folks would like to know if I can have more than one Transition on the same tag? Why do I implement Transitions for the properties but it doesn’t work? *Or this is because I haven’t 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. http://jsfiddle.net/hphf0c74/
Thank you in advance.
I recommend using all. Transition: all 1.25s Ease-in-out
– dsantoro