Home > Web Front-end > JS Tutorial > 2 types of jQuery to achieve scratch card effect_jquery

2 types of jQuery to achieve scratch card effect_jquery

WBOY
Release: 2016-05-16 16:16:40
Original
1354 people have browsed it

The drag-and-scrape coating effect uses the draggable method of jquery UI

The following is the source code:

Copy code The code is as follows:

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
http://www.w3.org/1999/xhtml">

jQuery UI simulates scratching lottery ticket coating to display results






Note: IE6 is not supported!


Effect 1 (drag the gray bar):




Please scratch it completely to view the winning results.


Effect 2 (click the gray bar):




Please scratch it completely to view the winning results.





Here I would like to share with you the very commonly used special effects codes for scratching prizes. I hope you guys will like them.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template