I hide the div element to expand another div area. I just want to replace 'transition: width .3s ease-out; 'with' easeoutbounce 'with jquery, here is my fiddle. what should I add / change from the following code?
(function() {
var page = document.body,
btn = document.getElementById('expmain');
btn.onclick = function() {
page.className = (/(^| )main-visible( |$)/.test(page.className)) ?
page.className.replace(/main-visible/,"") :
page.className + " main-visible";
// Toggle the toggle navigation title too...
this.title = (this.title == "expand!") ?
"back!" :
"expand!";
return false;
};
})();