• We just launched and are currently in beta. Join us as we build and grow the community.

How To Create Snowing On A Web Page

serg769

IoT Deployment Strategist
S Rep
0
0
0
Rep
0
S Vouches
0
0
0
Vouches
0
Posts
117
Likes
50
Bits
2 MONTHS
2 2 MONTHS OF SERVICE
LEVEL 1 300 XP
Snowing On A Web Page

In this article, we are going to learn on How To Create Snowing On A Web Page. Have you tried this? Have you seen snowing on your web page? This is how to create:

In the code below, you can set the amount of snow, for the colors of the snow, the types of the snow, the speed of the snow, the max and min size of the snow, and the direction of the snow.

  1. <

    script>
  2. // Set the number of snowflakes (more than 30 - 40 not recommended)
  3. var

    snowmax=

    30

  4. // Set the colors for the snow. Add as many colors as you like
  5. var

    snowcolor=

    new

    Array

    (

    "#aaaacc"

    ,

    "#ddddFF"

    ,

    "#ccccDD"

    )

  6. // Set the fonts, that create the snowflakes. Add as many fonts as you like
  7. var

    snowtype=

    new

    Array

    (

    "Cursive"

    ,

    "Helvitica"

    ,

    "Times"

    ,

    "Calibri"

    )

  8. // Set the letter that creates your snowflake (recommended:*)
  9. var

    symbolOfTheSnow=

    "*"

  10. // Set the speed of sinking (recommended values range from 0.3 to 2)
  11. var

    sinkspeed=

    1

  12. // Set the maximal-size of your snowflaxes
  13. var

    sizeOfTheSnow=

    50

  14. // Set the minimal-size of your snowflaxes
  15. var

    snowminsize=

    15

  16. // Set the snowing-zone
  17. // Set 1 for all-over-snowing, set 2 for left-side-snowing
  18. // Set 3 for center-snowing, set 4 for right-side-snowing
  19. var

    snowingzone=

    3
  20. </

    script>

For the full source code, kindly click the "Download Code" button below. Thank you very much. Enjoy coding.

So what can you say about this work? Share your thoughts in the comment section below or email me at [email protected]. Practice Coding. Thank you very much.


Download
You must upgrade your account or reply in the thread to view the hidden content.
 

452,496

334,779

334,787

Top