I have 1 animation and and 1 transition going on, They work great 1 at a time, but when I try to have both activated at the same time only the #fade will run, the other is totally dead. Why is this happening ? How can I solve it ?
first:
#fade{
width: 100%;
height: 120%;
background-color: #000;
background-size: cover;
position: absolute;
top: 0px;
left: 0px;
z-index: 6;
-webkit-animation: fadeout 6s;
animation: fadeout 6s;
opacity: 0;
}
@keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
@-webkit-keyframes fadeout {
from { opacity: 1; }
to { opacity: 0; }
}
second:
nav > div {
margin-right: 22px;
-webkit-transform: skew(8deg, 12deg);
-moz-transform: skew(8deg, 12deg);
-ms-transform: skew(8deg, 12deg);
transform: skew(8deg, 12deg);
opacity: 0.45;
-webkit-transition: all .35s ease-in-out;
-moz-transition: all .35s ease-in-out;
-ms-transition: all .35s ease-in-out;
transition: all .35s ease-in-out;
}
nav > div:hover {
opacity: 1;
-webkit-transform: scale(1.5);
-moz-transform: scale(1.5);
-ms-transform: scale(1.5);
transform: scale(1.5);
}