How can I do this?
$('#element').animate({ "width": "calc(100% - 278px)" }, 800);
$('#element').animate({ "width": "calc(100% - 78px)" }, 800);
I can do it if it's only % or only px, but not calc(), can I use some other option of jQuery? or some other trick of JavaScript?
It's a change that have to be done when the user clicks some element, so:
$("#otherElement").on("click", FunctionToToggle);
when the user clicks the $("#otherElement") the toggle effect has to occur.