Skip to content
Advertisement

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:

JavaScript
JavaScript

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

Advertisement

Answer

Try to add a class selector for child after hover .

And you can add transition for opacity for better effect)

JavaScript
Advertisement