【发布时间】:2012-01-23 07:10:32
【问题描述】:
我正在研究 HTML5 效果,我需要背景和前景都是带有动画内容的 DIV。所以我需要在 Background DIV 之上的 Foreground DIV 并且我想在用户刮掉 Foreground DIV 的区域时屏蔽它们。有可能吗?
我需要创建这个:http://beej.us/x/scratcher/,但使用 DIV 而不是背景和前景图像。
【问题讨论】:
标签: html canvas transparency html5-canvas mask