I customize a collapsible sidebar from this article
(http://devheart.org/articles/jquery-collapsible-sidebar-layout/) for my own project But it looks a bit funky and not right.
Please take a look at the project here:
The sidebar seems animating properly, but the #mainContent isn’t animating along with the sidebar. It’s toggling in stiffly and harsh.
Also advice if the way i added my code are optimize.
Thanks!
The new width of the
#mainContentis determined by CSS; which is why it isn’t animated. To animate the width of themainContentas well, try the following:Remove the following line from the CSS:
Modify the JavaScript to add the appropriate animations: