This works by duplicating the text, one copy for each pixel of height. The text is then clipped with overflow: hidden. The sluggishness on that page results from a couple hundred (thousand?) copies of the text positioned absolutely and needing to be clipped.
The description is here: http://labs.dragoninteractive.com/rainbows_article.php