I am currently working on practicing CSS 3 animation. I am facing a challenge in figuring out how to make the item fall down the page at full speed without needing the user to track it downward with the mouse, all without using javascript. Ideally, I want the box to start falling when the mouse hovers over it.
Below is the code I have so far:
<p class="exp9"><strong>box</strong></p>
strong {
margin-top: 20em;
}
p:hover strong {
display: block;
}
p:hover strong:hover {
margin-top: 20em;
}
Unfortunately, my current code only causes the text inside the box to drop down. Any suggestions or ideas would be greatly appreciated. Thank you!