javascript - Horizontal Overflow with slideDown() / slideUp() -


i trying use slideup() / slidedown() animate revelation of page element have had trouble relatively positioned icon negative (outside element) placement. while these animations execute sets overflow hidden rendering icon cut in half until animation completes.

the jsfiddle here illustrates issue. need horizontal overflow of blue box visible during whole execution of animation instead of magically appearing @ end. need vertical overflow remain hidden.

i've tried amending,

$(this).parent().find("div:eq(0)").slidedown(1000).css("overflow-x", "visible"); 

but seems ignored , using,

$(this).parent().find("div:eq(0)").slidedown(1000).css("overflow", "visible"); 

also makes vertical overflow visible.

any insight appreciated.

just wrap divs : div.clickevent inside other div.hide

<div class="hide"><div class="clickevent">  ...  </div> 

https://jsfiddle.net/h9gtzp6f/37/


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -