Documentary-style image panning with jQuery?
There are several questions about zooming and panning with jQuery, but they all (as far as I can tell) have to do with hooking up the zooming or panning to user behavior, such as mousing or using a slider.
I'm inter开发者_高级运维ested in something different: any advice on making the panning happen automatically? The sort of thing I have in mind can be seen in this video:
http://www.youtube.com/watch?v=q-2WSDtksj0
I've whipped up a proof-of-concept demo. As pointed out in the comments, browser-powered image resizing can run into quality issues. You'd have to play with it, and decide for yourself if it looks good enough for your purposes.
Check out CrossSlide: http://tobia.github.com/CrossSlide
Implements the Ken Burns effect and has a few other settings. Looks pretty nifty, but it's quite demanding on bad browsers.
精彩评论