Created
July 30, 2021 13:42
-
-
Save Klerith/a0d65093207b8a5a920a832568a47c11 to your computer and use it in GitHub Desktop.
Estilos para un modal manual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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;} | |
} |
Muchas gracias maestro!!
Thanks
Muchas gracias
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excelente recurso