I tried to implement a CSS3 animation fading out an element then applying a display:none to it, I found the idea on this SO question : Animation CSS3: display + opacity
.step2 .user-input {
animation: hideThat 1s forwards;
}
@keyframes hideThat {
0% { opacity: 1; display: block; }
99% { opacity: 0; display: block; }
100% { opacity: 0; display: none; }
}
(All vendor prefixes were removed for clarity.)
The opacity transition works, but the display:none isn't applied. I don't see what I'm doing wrong here.