How can I make this jQuery function a smooth transition (adjust height smoothly)?
I'm not sure where to add it in.
jQuery('#my-button').click(function() {
    if (jQuery('#my-button').height() < 100) {
        jQuery('#my-button').css("height","auto");  
    }
    else {
        jQuery('#my-button').css("height","56px");
    } 
});
I have tried using animate() but it won't work on 'auto'.
I can't use a fixed height as it needs to be text responsive for other devices.
 
     
    