I have an element set as position:fixed, and bottom: auto; and at some point I do .animate({bottom : '10%'}); it slides smoothly, and then I want to set it back to auto.
If I do .css('bottom','auto'); it slides, but not slowly. So it goes to original position, instantly.
I cannot use .animate(); so how can I do this?
one way could be using .toggleClass(); , but isn't there a way without changing its class ?
I also tried to put a long -webkit-transition time, but it still moves to original position instantly.
And another solution could be to save the initial position in a variable and put it back there, but it does not work for me, because the initial position may, or maynot change in this function.
 
     
     
     
    