

Over the past 2 weeks I’ve done a lot of research into Apple’s CoverFlow effect and how other developer’s have implemented it in languages and frameworks such as AS3, ProtoType MooTools. Without a doubt, the Flash versions of the effect have been the closest thing I’ve seen to the original with accurate mathematical tilting of the cover stack (and reflection) being fully supported.
MooFlow, which was one of the javascript versions I looked at wasn’t bad – it achieves a pseudo-coverflow effect using a similar layout to my first attempt at CoverFlow from last week’s post in jQuery. The biggest challenge you face when coding up this effect in JavaScript (even with a framework) is that there is no easy way to make your images angulate to the side without using some form of on the fly image processing. Some developers have tried to achieve this by using server side GD (with PHP), but I don’t believe that a true implementation of this effect should rely on anything other than client-side code.
Anyone that knows me will know that I’m a huge fan of the Canvas tag – it is by far the biggest game-changer in the Browser domain to have come along recently and has enabled developers to replicate image processing algorithms from other languages in javascript with relative ease. The effect you will see in the demo below makes use of the Canvas, supports keyboard events, inline zoom and only takes up 25kb before minimization (without any reliance on external frameworks such as my usual favorite – jQuery). Feel free to have a play around with it :)

Related posts:
Related posts brought to you by Yet Another Related Posts Plugin.
RSS feed for comments on this post. TrackBack URL
June 16th, 2009 at 12:18 pm
[...] more here: An improved javascript CoverFlow demo using Canvas and HTML5 … SHARETHIS.addEntry({ title: “An improved javascript CoverFlow demo using Canvas and HTML5 [...]
June 16th, 2009 at 1:20 pm
The link “Source – Get the code” do not works !!
June 16th, 2009 at 5:11 pm
Really impressive stuff. I wonder how it would work with images withing varying dimensions..
June 17th, 2009 at 12:42 am
[...] a busy day full of chatter on the InterWeb about HTML 5 and its proposed features. “Could it kill Flash and Silverlight”, as supposed by Paul Krill at [...]
August 7th, 2009 at 7:09 am
Hi,
Thank you very much for this nice piece of work (and really nice code)! I’ve implemented it on my web site (www.condor-club.eu) and slightly modified in order to work with Opera, Safari and Chrome (no reflection for this last one).
I’ve also added some code in order to load on-the-fly following images when the coverflow reaches the end of the list.
I’ve noticed few minor bugs on FF, sometimes the code runs before containerWidth and widthOffset are initialized, so the canvas are superposed.
Cheers,
Thierry