forked from Pabilo8/forest-wallpaper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbirds.css
135 lines (135 loc) · 3.11 KB
/
birds.css
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
.bird {
background-image: url(layers/birds_cells.svg);
background-size: auto 100%;
width: 88px;
height: 125px;
will-change: background-position;
-webkit-animation-name: fly-cycle;
animation-name: fly-cycle;
-webkit-animation-timing-function: steps(10);
animation-timing-function: steps(10);
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
.bird--one {
-webkit-animation-duration: 1s;
animation-duration: 1s;
-webkit-animation-delay: -0.5s;
animation-delay: -0.5s;
}
.bird-container {
position: absolute;
top: 40%;
left: -7.5vw;
-webkit-transform: scale(0);
transform: scale(0);
will-change: transform;
-webkit-animation-name: fly-right-one;
animation-name: fly-right-one;
-webkit-animation-timing-function: linear;
animation-timing-function: linear;
-webkit-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
.bird-container--one {
-webkit-animation-duration: 15s;
animation-duration: 15s;
-webkit-animation-delay: 0;
animation-delay: 0;
}
@-webkit-keyframes fly-cycle {
100% {
background-position: -900px 0;
}
}
@keyframes fly-cycle {
100% {
background-position: -900px 0;
}
}
@-webkit-keyframes fly-right-one {
0% {
left: -10%;
-webkit-transform: scale(0.3);
transform: scale(0.3);
}
10% {
left: 10%;
-webkit-transform: translateY(2vh) scale(0.4);
transform: translateY(2vh) scale(0.4);
}
20% {
left: 30%;
-webkit-transform: translateY(0vh) scale(0.5);
transform: translateY(0vh) scale(0.5);
}
30% {
left: 50%;
-webkit-transform: translateY(4vh) scale(0.6);
transform: translateY(4vh) scale(0.6);
}
40% {
left: 70%;
-webkit-transform: translateY(2vh) scale(0.6);
transform: translateY(2vh) scale(0.6);
}
50% {
left: 90%;
-webkit-transform: translateY(0vh) scale(0.6);
transform: translateY(0vh) scale(0.6);
}
60% {
left: 110%;
-webkit-transform: translateY(0vh) scale(0.6);
transform: translateY(0vh) scale(0.6);
}
100% {
left: 110%;
opacity: 1;
-webkit-transform: translateY(0vh) scale(0.6);
transform: translateY(0vh) scale(0.6);
}
}
@keyframes fly-right-one {
0% {
left: -10%;
-webkit-transform: scale(0.3);
transform: scale(0.3);
}
10% {
left: 10%;
-webkit-transform: translateY(2vh) scale(0.4);
transform: translateY(2vh) scale(0.4);
}
20% {
left: 30%;
-webkit-transform: translateY(0vh) scale(0.5);
transform: translateY(0vh) scale(0.5);
}
30% {
left: 50%;
-webkit-transform: translateY(4vh) scale(0.6);
transform: translateY(4vh) scale(0.6);
}
40% {
left: 70%;
-webkit-transform: translateY(2vh) scale(0.6);
transform: translateY(2vh) scale(0.6);
}
50% {
left: 90%;
-webkit-transform: translateY(0vh) scale(0.6);
transform: translateY(0vh) scale(0.6);
}
60% {
left: 110%;
-webkit-transform: translateY(0vh) scale(0.6);
transform: translateY(0vh) scale(0.6);
}
100% {
left: 110%;
opacity: 1;
-webkit-transform: translateY(0vh) scale(0.6);
transform: translateY(0vh) scale(0.6);
}
}