Idle Hamster

September 7th, 2011

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 off the edges like navigation buttons or anything with negative margins this is an undesirable effect.  Add overflow: visible !important to your stylesheet.  Problem solved, go back to your lives citizens.