Why does jQuery's animate method not support the CSS "display" property, or other CSS properties? -


 <div id="content">  <div id="ev1" class="evnt_imgs"><img src="images/e1.jpg" /> </div>  <div id="ev11" class="evnt_desc">this text purely related event</div></div>  $('#ev11').animate({height:'auto',width:'100%',borderradius:'20px',display:'block'},600);     ev11.style.margin="auto";     ev11.style.background="#333";     ev11.style.display="block"; } 

for more clarity on question posted check url http://bhaswara2k13.com/events.php

to animate fading in , out , display there special method in jquery. because display property can have set of values, not numeric.

here do:

$('#myitem').show(2000); 

and hide it:

$('#myitem').hide(2000); 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -