javascript - Animate overflow hidden -
i've got piece, want animate div going down , while still showing part of content. see working @ fiddle.
$('button').click(function(){ $('.wrap').animate().css({ 'overflow-y' : 'visible', 'max-height' : 'initial' }); });
your animation statement appears incorrect. code below should started. see examples in jquery api documentation.
$('button').click(function(){ $('.wrap').animate({ maxheight: '400px' }, 3000 ); }); yet, if want slide , down on button click jquery toggle method might work better you. see jquery toggle
Comments
Post a Comment