I'm using code adapted from the YUI3 documentation example to animate a graphic along a curved path.
The full canvas size is intentionally pretty huge - definitely larger than most screens - so the graphic will run out of viewport space pretty quickly and animate off the screen.
Instead, I'd like browser viewport to follow or centre on the image so that it stays 'in shot'.
Is there a YUI fuelled way of doing this? Or something simpler?