(请使用Chrome浏览器查看)
其原理如下所示:
http://www.romancortes.com/blog/how-i-did-the-1kb-christmas-tree/
——————————————
还有另外一个叫Dustin DeWeese程序员,也做了一个贺卡给大家(请点下面的链接)。这个贺卡需要向下滚动网页才能看得出效果来,no Javascript。
http://www.hackerfoo.com.nyud.net/christmas/christmas.html
这种使用遮罩而产生的动画的东西确实很有意思:http://blogoscoped.com/files/stripes.html,有一个小工具可以用来创建这样的东西:http://dl.dropbox.com/u/15095913/Scanimation_Creation_v1.1.zip
呵呵。挺有意思的吧。
文/酷壳 – CoolShell.cn