~ ~ Christmas, canvas snowflake effect, beautiful to almost no justice ~ ~

Source: Internet
Author: User

See coding the main interface has snowflakes, originally, wow, really beautiful, a look at the source code, oh a go, angular write, pressure, analysis and analysis analysis ....

And then write the JQ plugin look for everyone to use.

The online preview page is: http://1.keepu.sinaapp.com/snow/snow.html

GitHub's code address is: http://sqqihao.github.io/nice-Snowing;

The

  After the angular took off, direct reference to jquery, in fact, do not do jquery also Wow, compatibility did not get wow;

  The HTML code is the canvas, as follows

<Canvasclass= "Snow-canvas" Speed= "1"Interaction= "false"size= "2"Count= "a"Opacity= "0.00001"Start-color= "Rgba (253,252,251,1)"End-color= "Rgba (251,252,253,0.3)"Wind-power= "0"Image= "false"width= "1366"Height= "667"></Canvas><Canvasclass= "Snow-canvas" Speed= "3"Interaction= "true"size= "6"Count= "+"Start-color= "Rgba (253,252,251,1)"End-color= "Rgba (251,252,253,0.3)"Opacity= "0.00001"Wind-power= "2"Image= "false"width= "1366"Height= "667"></Canvas><Canvasclass= "Snow-canvas" Speed= "3"Interaction= "true"size= " a"Count= " the"Wind-power= "-5"Image= "Snow.png"width= "1366"Height= "667"></Canvas>

All of the configuration is on the canvas node, the name of the node properties to know is God horse meaning,

  Like what:

Add image This property is the image address, let the snowflake custom to like the appearance;

A size is a representation of a picture
Count indicates the number of pictures. And so on

  Direct Poke Instance address: Open demo;
 

~ ~ Christmas, canvas snowflake effect, beautiful to almost no justice ~ ~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.