Hey there, I'm experiencing an issue in Firefox. When I attempt to use a hover effect on a div to change the height to 0, it's behaving strangely. Is there a way to make it function like it does in Chrome? Here is the code snippet:
CSS :
#square{
position:fixed;
top:50%;
left:40%;
width:11%;
height:22%;
background-color:blue;
transition:height 0.8s linear;
-webkit-transition:height 0.8s linear;
-moz-transition:height 0.8s linear;
}
#square:hover{
height:0%;
}
HTML:
<div id="square"></div>