How to do sand animation

[youtube]http://www.youtube.com/watch?v=XL052vQxupc[/youtube]

From the website: http://www.anim8ed.org.uk/animatenow/video.asp