-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwave.css
110 lines (86 loc) · 1.46 KB
/
wave.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
body{
margin: 0;
padding: 0;
}
section
{
position: relative;
width: 100%;
height: auto;
background: #089acf;
overflow: hidden;
background-size: 400% 400%;
animation: gradient-bg 15s ease infinite;
}
section .wave
{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
background: url(wave.png);
background-size: 1000px 100px;
}
@keyframes gradient-bg
{
0%{
background-position: 0% 50%;
}
50%{
background-position: 100% 50%;
}
100%{
background-position: 0% 50%;
}
}
section .wave.water
{
animation: animate 25s linear infinite;
z-index:1000;
opacity:1;
animation-delay: 0s;
bottom:0;
}
section .wave.water:nth-child(2)
{
animation: animate2 15s linear infinite;
z-index:999;
opacity:0.5;
animation-delay: -5s;
bottom:10px;
}
section .wave.water:nth-child(3)
{
animation: animate 30s cubic-bezier(.55, .5,.45,.5) infinite;
z-index:998;
opacity:0.2;
animation-delay: -5s;
bottom:15px;
}
section .wave.water:nth-child(4)
{
animation: animate2 5s linear infinite;
z-index:997;
opacity:0.7;
animation-delay: -5s;
bottom:20px;
}
@keyframes animate
{
0%{
background-position-x: 0;
}
100%{
background-position-x: 1000px;
}
}
@keyframes animate2
{
0%{
background-position-x: 0;
}
100%{
background-position-x: -1000px;
}
}