I recently implemented a CSS3 delayed animation on page load. Everything was working smoothly until I noticed that after the animation finishes, the DIV reverts back to visibility: hidden
.
.content-left {
margin-left: 100px;
margin-top: 32px;
position: absolute;
z-index: 1;
visibility: hidden;
-webkit-animation: fadein 1s 2s ease; /* Safari and Chrome */
animation: fadein 1s 2s ease;
}
@keyframes fadein {
from { height: 0px; }
to { height: 421px; visibility: visible;} }
@-webkit-keyframes fadein {
from { height: 0px; }
to { height: 421px; visibility: visible;}}