How to follow jQuery animated div across screen?
<p>I'm using <a href="https://github.com/MmmCurry/jquery.crSpline">jQuery.crSpline</a> to animate a graphic along a curved path. I'm pretty happy with the result.</p>

<p>However, the full canvas size is intentionally pretty wide - definitely larger than most screens - so the graphic will run out of viewport space pretty quickly and animate off the screen.</p>

<p>Instead, I'd like browser viewport to follow or centre on the image so that it stays 'in shot'.</p>

<p>How would I go about this with jQuery? Is scrollTop an option?</p>

<p>I've created a <a href="http://jsfiddle.net/gNdwD/">jsFiddle demo,</a> based on the <a href="http://ijin.net/crSpline/demo.html">crSpline demo source</a>, but with a wide minX setting.</p>

<hr>

<p><strong>NB</strong>: I did first attempt this with YUI3 and <a href="http://stackoverflow.com/users/322395/loktar">Loktar</a> offered a canvas based <a href="http://stackoverflow.com/questions/12392455/">solution</a>, however I'm not using YUI &amp; canvas any longer.</p>
