Skip to content

Instantly share code, notes, and snippets.

@Klerith
Created July 30, 2021 13:42
Show Gist options
  • Save Klerith/a0d65093207b8a5a920a832568a47c11 to your computer and use it in GitHub Desktop.
Save Klerith/a0d65093207b8a5a920a832568a47c11 to your computer and use it in GitHub Desktop.
Estilos para un modal manual
.modal-background {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
background-color: rgba(0, 0, 0, 0.5);
align-items: center;
justify-content: center;
}
.modal-container {
width: 250px;
height: 250px;
background-color: white;
border-radius: 5px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}
.center {
display: flex;
justify-content: center;
align-items: center;
width: 250px;
height: 250px;
color: red;
}
.fade-in {
animation: fadeIn ease-out 0.2s;
-webkit-animation: fadeIn ease-out 0.2s;
-moz-animation: fadeIn ease-out 0.2s;
-o-animation: fadeIn ease-out 0.2s;
-ms-animation: fadeIn ease-out 0.2s;
}
@keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@-moz-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@-webkit-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@-o-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@-ms-keyframes fadeIn {
0% {opacity:0;}
100% {opacity:1;}
}
@iscImagic
Copy link

Excelente recurso

@CHB94git
Copy link

Muchas gracias maestro!!

@rubenerangel
Copy link

Thanks

@FlashAmarillo
Copy link

Muchas gracias

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment