html - Show content when hovering over DIV -
is possible show content when hovering on div. see image
when hover on div, transition takes place, possible show content inside 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 have following markup:
<div id="parent"> content <div id="hover-content"> show when hovering parent </div> </div>
the css:
#hover-content { display:none; } #parent:hover #hover-content { display:block; }
this should trick.
not sure how you'd transitions, you'd have put same selector @ least.
Comments
Post a Comment