-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
94 lines (78 loc) · 1.5 KB
/
styles.css
File metadata and controls
94 lines (78 loc) · 1.5 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* General page styling */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f4f8;
overflow: hidden; /* Ensure no scrollbars */
}
/* Styling the falling images */
.image-fall {
position: fixed;
top: -50px;
animation-name: fall;
animation-timing-function: linear;
animation-duration: 5s;
animation-fill-mode: forwards;
}
/* Set the size of the image */
.image-fall img {
width: 50px;
height: auto;
}
/* Falling and disappearing animation */
@keyframes fall {
0% {
transform: translateY(0);
opacity: 1;
}
90% {
transform: translateY(100vh);
opacity: 1;
}
100% {
transform: translateY(100vh);
opacity: 0;
}
}
/* Random animation delay for each image */
.image-fall:nth-child(1) {
left: 10%;
animation-delay: 0s;
}
.image-fall:nth-child(2) {
left: 20%;
animation-delay: 0.2s;
}
.image-fall:nth-child(3) {
left: 30%;
animation-delay: 0.4s;
}
.image-fall:nth-child(4) {
left: 40%;
animation-delay: 0.6s;
}
.image-fall:nth-child(5) {
left: 50%;
animation-delay: 0.8s;
}
.image-fall:nth-child(6) {
left: 60%;
animation-delay: 0.1s;
}
.image-fall:nth-child(7) {
left: 70%;
animation-delay: 0.3s;
}
.image-fall:nth-child(8) {
left: 80%;
animation-delay: 0.5s;
}
.image-fall:nth-child(9) {
left: 90%;
animation-delay: 0.7s;
}
.image-fall:nth-child(10) {
left: 95%;
animation-delay: 0.9s;
}