How to keep an animation consistant after page load
<p>i have a project that should feel like a super smooth ajax driven page which loads content dynamically but is in reality a normal answer with a page load.</p>

<p>In this project its important to have a sliding effect of the left sidebar. It slides out if the mouse leaves the sidebar and slides in if the mouse enters...</p>

<p>So far everything is good but when it comes to a new pageload after a link was being clicked the sidebar has sometimes a slide-in status and sometimes a slide-out status (depends on what the mouse did after link was clicked)</p>

<p>What i can do is to put the status (visible/invisible) of the sidebar into a session and save it. But that is not smooth enough. Sometimes the sidebar slide effect completed 50% and then the  new page loads...so this is not granular enought to look smooth.</p>

<p>What i did then was to get the status of the animation via :step but it just saved the end-state of the animation and not the current state...</p>

<p>Does someone has a trick to keep the animation relatively consistent after page load?</p>

<p>And no: I don't want to use ajax in this case ;-P</p>

<p>Thanks a lot      </p>
