1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************
 * 在雪花上奔跑(二人版)
 *******************/
.snowflake, .snowflake:hover {
    color: #FFFC;
    opacity: 1;
    right: 50px;                    /* 雪花位置 */
    bottom: 50px;                   /* 雪花位置 */
    width: 60px;
    height: 60px;
    font-size: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotating 30s linear infinite;
}

.snowflake::before {
    position: absolute;
    content: ' ';
    background-image: url('https://emos.plurk.com/741ec82d4085cc074635d153483ce75c_w26_h38.gif');   /* 奔跑圖片網址 */
    background-repeat: no-repeat;
    background-position: center top;
    width: calc(100%*2);                /* 按照圖片大小調整(預設2倍) */
    height: calc(100%*2);               /* 按照圖片大小調整(預設2倍) */
    animation: rotating 8s linear infinite;
    animation-direction: reverse;
}

.snowflake::after {
    position: absolute;
    content: ' ';
    background-image: url('https://emos.plurk.com/19b1a6cbc95e7c2d62f365517aa3b165_w28_h38.gif');   /* 奔跑圖片網址 */
    background-repeat: no-repeat;
    background-position: center top;
    width: calc(100%*2);                /* 按照圖片大小調整(預設2倍) */
    height: calc(100%*2);               /* 按照圖片大小調整(預設2倍) */
    animation: rotating 8s linear infinite;
    animation-direction: reverse;
    animation-delay: 1s;
}

/*** 滑鼠放上去的圖片,不需要的可刪掉 ***/
.snowflake:hover::before {
    background-image: url('https://emos.plurk.com/6e419cefb0aa4102ed3249cac398f361_w32_h38.gif');   /* 奔跑圖片網址 */
}