forked from Vishal-raj-1/Awesome-JavaScript-Projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
color-flicker.css
107 lines (93 loc) · 1.61 KB
/
color-flicker.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
body {
text-align: center;
vertical-align: center;
background-color: chocolate;
}
h1 {
background-color: black;
color: darkred;
}
.container{
padding:10px;
}
button{
padding: .7rem;
background-color: transparent;
border-radius: 8%;
background-color: black !important;
color: white;
box-shadow: 2px 3px 3px rgba(199, 234, 240, 0.7);
}
button:hover{
border: 3px solid white;
box-shadow: 3px 5px 3px #8888;
}
*
{
margin: 0;
padding: 0;
}
section .wave
{
position: absolute;
bottom: 0;
left: 0;
width:100%;
height: 100px;
background: url(wave.png);
background-size: 1000px 100px;
}
section .wave.wave1
{
animation: animate 30s linear infinite;
z-index: 1000;
opacity: 1;
animation-delay: 0s;
bottom: 0;
}
section .wave.wave2
{
animation: animate2 15s linear infinite;
z-index: 999;
opacity: 0.5;
animation-delay: -5s;
bottom: 10px;
}
section .wave.wave3
{
animation: animate 15s linear infinite;
z-index: 998;
opacity: 0.2;
animation-delay: -2s;
bottom: 15;
}
section .wave.wave4
{
animation: animate 5s linear infinite;
z-index: 997;
opacity: 0.7;
animation-delay: -2s;
bottom: 20;
}
@keyframes animate
{
0%
{
background-position-x:0 ;
}
100%
{
background-position-x:1000px ;
}
}
@keyframes animate2
{
0%
{
background-position-x:0 ;
}
100%
{
background-position-x:-1000px ;
}
}