<div id='element-with-transition'>
<div class='child'>
<div style='display:none'>Something here...</div>
<div style='display:none'>Something here...</div>
<div style='display:none'>Something here...</div>
</div>
</div>
<style>
#element-with-transition{
-webkit-transition: height 3s;
transition: height 3s;
}
</style>
When I change display:none
to display:block
the content is shown but the transition is not fired. I already tried changing the transition from height to all, but nothing changes. Am I doing it correctly?