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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -