I've got a question which I think could help many of us, so let's go.
I made this picture which will sum up exactly what I need: What I need to do
So I need to display content (in my example the big red box with the n°1, since I imagine we are hovering the step 1 part of the picture), according to what the mouse is hovering, in one specific area.
I need this content to push the rest of the page toward the bottom when it displays. Or if it is simpler, the hover content might just drop down over the content of the page. I also need this content to appear with a transition.
Is it possible to do it in pure CSS ? I currently have this :
#hover-content {
display:none;
}
#parent:hover #hover-content {
display:block;
}
<div id="parent">
<div id="original">
Original content
</div>
<div id="hover-content">
Content displayed when hovering
</div>
Some content below, which is pushed to the bottom by the hover content
</div>
This one is not bad but has no transition, and I don't know if I can use it for 4 boxes with different hover content.
And this, which might also help :
#hover-content {
display:hidden;
visibility: hidden;
opacity: 0;
transition: visibility 0s, opacity 0.5s linear;
}
#parent:hover #hover-content {
visibility: visible;
opacity: 1;
}
<div id="parent">
<div id="original">
My original content
</div>
<div id="hover-content">
The content which displays only when hovering the original content
</div>
</div>
Some content below
This one has a transition but does not drop down and leaves a blank when nothing is displayed...
I guess I'm still far from my goal. Any suggestion ?