I have css code like this:
.tab_minimized {
   border-radius:20px;
   border: #0D68FF 16px solid;
   width:200px;
   height:140px;
   top: 300px;
   overflow:hidden;
}
And I changed value of it by jquery with this code:
$("#clickLaptop01").click(function() {
   $("#clickDetailTab01").removeClass( "tab_hide" );
   $("#clickDetailTab01").addClass( "tab_minimized").animate({
          height:"500px",
          width:"100%",
          top:"50px",
          borderWidth:"30px",
          borderRadius: 45
   },1500);
});
I need to change height: 500px value to auto but if I use auto there tab_minimized class get older 140px height only. it was not change to height auto". Is there a easy way to change height auto in my css. 
 
     
     
    