Hi,
I have a <div> with two texts, where one is hidden. I want that, when I hover the main <div>, the hidden text appears as a slide down. Here is my code:
Well, the text is displaying whe hover, but how to do a slide down effect with CSS?
I have a <div> with two texts, where one is hidden. I want that, when I hover the main <div>, the hidden text appears as a slide down. Here is my code:
Code:
<div id="main">
<p>IF YOU HOVER IN THE BOX, ANOTHER TEXT WILL SLIDE DOWN</p>
<p id="hiddentext" style="display:none">Hey' I'm visible now!</p>
</div>
<style>
#main:hover>#hiddentext {
display:block!important;
}
</style>
Well, the text is displaying whe hover, but how to do a slide down effect with CSS?