Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

88
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda