I have a button that I want to trigger a new input field to slide up when hovered, giving the effect of it coming from behind the button.
Initially, I attempted to achieve this using only CSS by manipulating the height of the surrounding form with overflow: hidden
. However, this caused the button to fade out rather than the desired input field. Is there any way to change this behavior, perhaps through a specific browser tweak?
Now, I am exploring jQuery as an alternative solution, although I am not experienced in using it. I am hopeful that someone can provide assistance to make it function correctly.
The key adjustment needed is changing the value of margin from 0 auto -3px
to 0 auto -31px
.
For reference, here is my example.