September 7th, 2011

  • JavaScript

jQuery Animation and Overflows

Thought I would share a little tip about animating with jQuery that I wasted a good hour on.  If you're animating the height of an object, jQuery will automatically set the item's overflow property to hidden.  Of course if you have items hanging of the edges like navigation buttons or anything with negative margins this is an undesirable effect.  That is unless you add overflow: visible !important to your stylesheet.  Problem solved, go back to your lives citizens.