Skip to content

Instantly share code, notes, and snippets.

@hunted-down-developer
Last active April 8, 2019 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunted-down-developer/1538d1715634ab2e34ca0b39f8a2e8a7 to your computer and use it in GitHub Desktop.
Save hunted-down-developer/1538d1715634ab2e34ca0b39f8a2e8a7 to your computer and use it in GitHub Desktop.
Animação nativa pra mensagens de erro
.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