Animação Css3 – Entrada de Texto FlipInx

Postado: 21 de novembro de 2021

Animação Css3 – Entrada de Texto FlipInx

Neste tutorial vamos fazer uma entradinha de texto com efeito de flipinx com css3.

Vamos Adicionar o Html:

<div class="texto-animado">
                  
  <h1 class="animated fadeIn delay-04">
       <span class="animated flipInX delay-06">Sejam</span><span class="animated flipInX delay-10">Bem-vindos</span>
  </h1>
                
  <p class="animated flipInX delay-15">www.loopnerd.com.br</p>
                
</div>

Vamos Adicionar o 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:#757575;

}

.texto-animado h1 span:first-child {

  color: #f95e5e;
  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-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-10 {
  -moz-animation-delay: 1s;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
}

.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 Flip inX*/
@-webkit-keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

@keyframes flipInX {
  0% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  100% {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}

.flipInX {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInX;
  animation-name: flipInX;
}
/*Entrada Flip inX*/

/*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;
}

Veja o Resultado !

Baixar Código Veja Funcionando

Publicado por: loopnerd

842 Visualizações

Deixe um comentário

O seu endereço de e-mail não será publicado.