Last active
April 8, 2019 19:12
-
-
Save hunted-down-developer/1538d1715634ab2e34ca0b39f8a2e8a7 to your computer and use it in GitHub Desktop.
Animação nativa pra mensagens de erro
This file contains 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
.error-message{ | |
display: block; | |
margin: 0 auto; | |
width: 80%; | |
font-size: 1rem; | |
line-height: 3rem; | |
text-align: center; | |
font-family: sans-serif; | |
color: white; | |
background-color: #87A8E3; | |
box-shadow: 0 0 20px #0A2B69; | |
border-radius: 5px; | |
animation: showMsg .5s ease-in-out; | |
} | |
@keyframes showMsg{ | |
from{ | |
transform: scale(0.5); | |
}33%{ | |
transform: scale(1); | |
}70%{ | |
transform: scale(0.5); | |
}to{ | |
transform: scale(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment