This project is from a couple years ago, originally written with YUI2, then recently updated for YUI3. It uses the 'node' and 'anim' yui3 modules.
fig 1. A flickr set with a lightbox-style overlay. View example
View Adam Portilla's portfolio website