-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflag.css
68 lines (67 loc) · 1.14 KB
/
flag.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
.container {
height: 700px;
width: 700px;
position: absolute;
right: 0;
/* top: 50%; */
clip-path: url(#map-path);
}
svg {
height: 0;
width: 0;
}
.color-orange,
.color-green {
position: absolute;
width: 100%;
height: 39%;
left: 0;
animation: slide-right 6s;
}
.color-orange {
top: 0;
background: linear-gradient(#fec200, #ff8a00);
}
.color-green {
bottom: 0;
background: linear-gradient(#4cc701, #0a8d03);
}
@keyframes slide-right {
0% {
left: -100%;
}
}
.color-white {
position: absolute;
width: 100%;
height: 22%;
top: 39%;
background-color: #ffffff;
right: 0;
animation: slide-left 6s;
}
@keyframes slide-left {
0% {
right: -100%;
}
}
#ashoka-chakra {
height: 120px;
width: 120px;
position: absolute;
margin: auto;
left: -150px;
right: 0;
top: 0;
bottom: 0;
animation: spin 3s 4.2s forwards;
transform: scale(0);
}
@keyframes spin {
80% {
transform: scale(1.6) rotate(360deg);
}
100% {
transform: scale(1) rotate(360deg);
}
}