Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

233
Visualizações
Text wrapping not animating smoothly

I'm using CSS to create animations for my website. When the home page loads, I want the my name and an image to slide in from the side, "my name" appearing from the left, and an image appearing from the right. My problem now is, if the screen is just small enough for "my name" to wrap, then when the animations begins it first doesn't wrap but when it ends the text wraps, leaving behind a sudden transition of the "my name". This video should explain it better

So my question is how can I make the overall animation smooth even if the text has to be wraped?

This is the following CSS animation that I'm using:

@keyframes slideToLeft {
  
  from {
    margin-left: 100%;
  }
  to {
      margin-left: 0%;
  }
}
@keyframes slideToRight {

  from {
    margin-left: -100%;
}
  to {
    margin-left: 0%;
  }
}
about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

For Simple Animation you need to use : Animate On Scroll Library.

Link for Example : AOS

about 4 years ago · Juan Pablo Isaza Relatório

0

You have to give the text width (like 100vw) so that the text stay wrap when animation starts.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda