forked from Ayushparikh-code/Web-dev-mini-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrainbow.css
109 lines (97 loc) · 1.94 KB
/
rainbow.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
body{
margin: 0;
padding: 0;
background-color: black;
}
.center{
position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%,-50%);
}
ul{
margin: 0;
padding: 0;
position: relative;
width: 400px;
height: 240px;
overflow: hidden;
border-bottom: 1px solid rgba(0,0,0,.2);
}
ul li{
list-style: none;
border-radius: 50%;
border: 15px solid #000;
position: absolute;
top: 100%;
left: 50%;
border-bottom-color: transparent !important;
border-left-color: transparent !important;
box-shadow: 0 0 10px rgba(0,0,0,.5);
animation: animate 5s infinite alternate;
transform: translate(-50%,-50%);
}
.one{
width: 60px;
height: 60px;
border-color:#FF0000;
animation-delay: .2s;
animation-duration: 5s;
animation-name: animate;
}
.two{
width: 90px;
height: 90px;
border-color:#FF7F00;
animation-delay: .4s;
animation-duration: 5s;
animation-name: animate;
}
.three{
width: 120px;
height: 120px;
border-color:#FFFF00;
animation-delay: .6s;
animation-duration: 5s;
animation-name: animate;
}
.four{
width: 150px;
height: 150px;
border-color:#00FF00;
animation-delay: .8s;
animation-duration: 5s;
animation-name: animate;
}
.five{
width: 180px;
height: 180px;
border-color:#0000FF;
animation-delay: 1s;
animation-duration: 5s;
animation-name: animate;
}
.six{
width: 210px;
height: 210px;
border-color:#4B0082;
animation-delay: 1.2s;
animation-duration: 5s;
animation-name: animate;
}
.seven{
width: 240px;
height: 240px;
border-color:#9400D3;
animation-delay: 1.4s;
animation-duration: 5s;
animation-name: animate;
}
@keyframes animate{
0%{
transform: translate(-50%,-50%) rotate(-45deg);
}
100%{
transform: translate(-50%,-50%) rotate(315deg);
}
}