-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathSnow.css
More file actions
36 lines (30 loc) · 885 Bytes
/
Snow.css
File metadata and controls
36 lines (30 loc) · 885 Bytes
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
.Snow .snowFlake {
position: absolute;
top: -20px;
animation-name: snowDrop;
animation-iteration-count: infinite;
}
.Snow .snowFlake .flake {
width: 20px;
height: 20px;
background-repeat: no-repeat;
background-size: cover;
animation-name: snowJiggle;
animation-iteration-count: infinite;
}
.Snow .flake1 {background-image: url('./images/flake1.png');}
.Snow .flake2 {background-image: url('./images/flake2.png');}
.Snow .flake3 {background-image: url('./images/flake3.png');}
@keyframes snowDrop {
from {transform: translateY(0vh)}
to {transform: translateY(calc(100vh + 20px))}
}
@keyframes snowJiggle {
0% {transform: translateX(0vw)}
20% {transform: translateX(20vw)}
30% {transform: translateX(5vw)}
50% {transform: translateX(25vw)}
70% {transform: translateX(0vw)}
85% {transform: translateX(15vw)}
100% {transform: translateX(0vw)}
}