I'm trying to use slideUp () / slideDown () to animate the expansion of a page element, but I had problems with a relatively positioned icon with a negative (outside the element) placement. While these animations are running, it overflows with hidden rendering, and my icon is cut in half before the animation finishes.
JSFiddle here illustrates my problem. I need a horizontal blue field overflow to be visible during the entire animation, and not magically appear at the end. I also need the vertical overflow to remain hidden.
I tried to change
$(this).parent().find("div:eq(0)").slideDown(1000).css("overflow-x", "visible");
but he seems to be ignored and uses
$(this).parent().find("div:eq(0)").slideDown(1000).css("overflow", "visible");
also makes vertical overflow visible.
Any understanding would be greatly appreciated.
javascript jquery html css
E. Allison
source share