开发者

Creating a scratchy ticket

开发者 https://www.devze.com 2023-02-25 10:58 出处:网络
Looking to create a scrathie ticket effect in javascript where a block is presented and youwith the mouse) click and drag to reveal the image behind

Looking to create a scrathie ticket effect in javascript where a block is presented and you with the mouse) click and drag to reveal the image behind

Am determined not to use Flash

开发者_Go百科

This is the best I could find so far in terms of an example script http://www.siteexperts.com/tips/styles/ts37/page1.asp

Anyone know of a better more 'scratch-like' example with code?


Best bet would be to overlay a canvas over something, and scratch away the position of the mouse pointer.

jsFiddle.

0

精彩评论

暂无评论...
验证码 换一张
取 消