Entrada de texto Animado com css – FadeIn Down
ANTERIOR
Tab Nav Responsivo Com Html e Css
Postado: 30 de setembro de 2021
Tempo de Leitura: 2 Minutos
Entrada de texto Animado com css – FadeIn Down
Neste artigo vamos fazer uma entrada de texto com efeito FadeInDown, Pulse e FadeIn com css3.
Html:
div class="texto-animado animated pulse delay-15"> <h1 class="animated fadeIn delay-02"> <span class="animated fadeInDown delay-04">Sejam</span> <span class="animated fadeInDown delay-06">Bem-vindos</span> </h1> <p class="animated fadeIn delay-1">www.loopnerd.com.br</p> </div>
Css
.texto-animado { width:100%; margin:auto; display: block; overflow:hidden; } .texto-animado h1 { margin-top: 5%; font-size: 1.8em; display: inline-block; border-bottom: 1px #f4f3f3 solid; } .texto-animado h1 span { position: relative; float: left; font-family: 'open_sansbold'; color:#343434; } .texto-animado h1 span:first-child { color: #ffd700; margin-right: 1rem; font-weight:bold; font-family: 'open_sansbold'; } .texto-animado p { width: auto; display: block; font-size: 0.9em; color: #b7b7b7; padding-top: 0.3em; letter-spacing: 4.5px; } .delay-1 { -moz-animation-delay: 1s; -webkit-animation-delay: 1s; animation-delay: 1s; } .delay-02 { -moz-animation-delay: 0.2s; -webkit-animation-delay: 0.2s; animation-delay: 0.2s; } .delay-04 { -moz-animation-delay: 0.4s; -webkit-animation-delay: 0.4s; animation-delay: 0.4s; } .delay-06 { -moz-animation-delay: 0.6s; -webkit-animation-delay: 0.6s; animation-delay: 0.6s; } .delay-15 { -moz-animation-delay: 1.5s; -webkit-animation-delay: 1.5s; animation-delay: 1.5s; } /*Anima Texto*/ .animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; } /*Entrada Pulse*/ @-webkit-keyframes pulse { 0% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } @keyframes pulse { 0% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } 50% { -webkit-transform: scale3d(1.05, 1.05, 1.05); transform: scale3d(1.05, 1.05, 1.05); } 100% { -webkit-transform: scale3d(1, 1, 1); transform: scale3d(1, 1, 1); } } .pulse { -webkit-animation-name: pulse; animation-name: pulse; } /*Entrada Pulse*/ /*Entrada fadeInDown*/ @keyframes fadeInDown { 0% { opacity: 0; -webkit-transform: translate3d(0, -100%, 0); transform: translate3d(0, -100%, 0); } 100% { opacity: 1; -webkit-transform: none; transform: none; } } .fadeInDown { -webkit-animation-name: fadeInDown; animation-name: fadeInDown; } /*Entrada fadeInDown*/ /*Entrada FadeIn*/ @-webkit-keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } @keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } } .fadeIn { -webkit-animation-name: fadeIn; animation-name: fadeIn; } /*Entrada FadeIn*/
Veja o Resultado!
Deixe um comentário