Blog background beautification - Dynamic snow falling

Reprint:

Author:  GrayKido

Source: Source: https://www.cnblogs.com/graytido/p/10779199.html

First, you must first apply for permission to CSS

Add the following code in the page custom CSS code

Copy the code
 1 #Snow{
 2     position: fixed;
 3     top: 0;
 4     left: 0;
 5     width: 100%;
 6     height: 100%;
 7     z-index: 99999;
 8     background: rgba(255,255,240,0.1);
 9     pointer-events: none;
10 }
Copy the code

Then add the side bulletin board

<div class="Snow">
    <canvas id="Snow"></canvas>
</div>
<script src="https://files.cnblogs.com/files/cn-suqingnian/snow.js"></script>

Reprint:

Author:  GrayKido

Source: Source: https://www.cnblogs.com/graytido/p/10779199.html

First, you must first apply for permission to CSS

Add the following code in the page custom CSS code

Copy the code
 1 #Snow{
 2     position: fixed;
 3     top: 0;
 4     left: 0;
 5     width: 100%;
 6     height: 100%;
 7     z-index: 99999;
 8     background: rgba(255,255,240,0.1);
 9     pointer-events: none;
10 }
Copy the code

Then add the side bulletin board

<div class="Snow">
    <canvas id="Snow"></canvas>
</div>
<script src="https://files.cnblogs.com/files/cn-suqingnian/snow.js"></script>

Guess you like

Origin www.cnblogs.com/2979100039-qq-con/p/12426220.html
Recommended