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

123
Visualizações
Animate height and max-height on different elements cause a queue of transitions

Codesandbox: https://codesandbox.io/s/gallant-cori-hdj5w?file=/src/App.js

I have this simple component with two animations: the first one on the height (from 0% to 100%) and the second one on the max-height. I didn't understand why they works but not at the same time: the second animation seems like waits the first animation to finish before to start.

The expected behaviour is that both the animation start and end together.

What is the problem?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I would build the styling again due to positioning problems, but if you want a fast patch for this issue change maxHeight: isHeightFull ? 0 : 500 on line 103 for maxHeight: isHeightFull ? 0 : 50

To improve the styling try adding borders to your two most important containers and then figure out how to build it in such a way that they don't superimpose.

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