How do I make the CSS display property change from none to flex with a delay of 1s without using JavaScript for it?
I have the following code:
#botao-painel:checked ~ .painel {
display: flex;
height: 100%;
left: 0;
top: 0;
width: 100%;
}
.painel {
align-items: center;
background-color: RGBA(0,0,0,0.85);
display: none;
height: 0;
justify-content: center;
left: 50%;
position: fixed;
top: 50%;
transition: all 1000ms ease 2000ms;
-webkit-transition: all 1000ms ease 2000ms;
width: 0;
z-index: 500;
}
.painel > div {
align-items: center;
background-color: RGB(255,255,255);
display: flex;
height: 75%;
justify-content: center;
width: 46%;
}
The problem is that when I click on the button it applies the properties in .painel but the delay and nor the animation are used, simply everything appears at once.
Does anyone have any tips to give me how to solve this without using JavaScript, only with CSS?