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

92
Visualizações
How to show a div from below of parent division with transition?

I am trying to show child div with the transition from the bottom of parent div on hovering on parent div.

Here is what I tried:

.parent {
  min-height: 370px;
}

.child {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0;
  transition: height 2s;
}

.parent:hover child {
  height: 30px;
}
<div className="parent">
  <div className="child">View More</div>
</div>

But It is not working as even with height 0, "View More" is still visible and the transition is not working as well.

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

0

Try to add a class selector for child after hover .

And you can add transition for opacity for better effect)

.parent:hover .child {
  height:30px;
}
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