odin-default-css-exercises/animation/03-pop-up/solution/solution.css

40 lines
611 B
CSS
Raw Normal View History

2021-10-18 21:33:12 +00:00
* {
padding: 0;
margin: 0;
}
2021-10-20 20:40:44 +00:00
.popup-container {
2021-10-18 21:33:12 +00:00
width: 100vw;
height: 100vh;
2021-10-20 20:40:44 +00:00
background-color: #ffffff;
opacity: 1;
transition: background-color 0.5s ease-in, opacity 0.5s ease-in;
}
.popup-container.show {
background-color: #000000;
opacity: 40%;
}
#trigger-modal,
.popup-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2021-10-18 21:33:12 +00:00
}
.popup-modal {
position: absolute;
width: 30%;
border: 1px solid black;
background-color: white;
display: flex;
justify-content: space-between;
visibility: hidden;
}
2021-10-20 20:40:44 +00:00
.popup-modal.show {
2021-10-18 21:33:12 +00:00
visibility: visible;
}