Is it possible to show content when hovering over the DIV. See Image
When I hover over the div, the transition takes place, but is it possible to show content inside the hovering div, ie. Images etc
html :
<div class="flowingdown">
</div>
CSS3 :
.flowingdown {
width:1045px;
background-image:url(images/vertical_cloth.png);
height:50px;
float:left;
margin-top:2px;
margin-bottom:2px;
border-radius:0 0 55px 55px ;
transition: height 1s;
-webkit-transition: height 1s;
}
.flowingdown:hover {
height:100px;
}
Assume you have the following markup:
The CSS:
This should do the trick.
Not sure how you'd do it with transitions, but you'd have to put the same selector at least.
Example
Yes, it is possible.
But wrap your
.flowingdown
within a div. Inorder to show the entire content,CSS:
Check this JSFiddle
I assume you are trying to hide the bottom half of the background-image, but I just tested this exact code and it worked fine:
That's the same exact code you used, except I used an image of my own.
If what you want is to change the background image on hover, your CSS should be:
Let me know if I misunderstood your question.
If, per say, you have this context :
CSS
Working example jsFiddled here