forked from AbhishekSinha10/SIH_rough
-
Notifications
You must be signed in to change notification settings - Fork 0
/
leisure.css
115 lines (107 loc) · 1.92 KB
/
leisure.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
*{
box-sizing:border-box;
}
body{
margin:0;
padding:0;
background-color: #34495e;
display:flex;
align-items:center;
justify-content: center;
height:100vh;
overflow:hidden;
}
.container{
width:500px;
height:500px;
background-color: #ccc;
border-radius:50%;
border:18px solid #dde;
position: relative;
overflow: hidden;
transition: 1s;
}
.container1{
float: left;
}
.container div{
height:50%;
width:200px;
position: absolute;
clip-path: polygon(100% 0 , 50% 100% , 0 0 );
transform:translateX(-50%);
transform-origin:bottom;
text-align:center;
display:flex;
align-items: center;
justify-content: center;
font-size:20px;
font-weight:bold;
font-family:sans-serif;
color:#fff;
left:135px;
writing-mode: vertical-rl;
}
.container .one{
background-color: #707696;
left:50%;
}
.container .two{
background-color: #bb9254;
transform: rotate(45deg);
}
.container .three{
background-color: #b95f7d;
transform:rotate(90deg);
}
.container .four{
background-color: #6fb872;
transform: rotate(135deg);
}
.container .five{
background-color: #57a59e;
transform: rotate(180deg);
}
.container .six{
background-color: #c26f51;
transform: rotate(225deg);
}
.container .seven{
background-color: #8f5998;
transform: rotate(270deg);
}
.container .eight{
background-color: #a04842;
transform: rotate(315deg);
}
.arrow{
position: absolute;
top:0;
left:50%;
transform: translateX(-50%);
color:#fff;
}
.arrow::before{
content:"\1F817";
font-size:50px;
}
#spin{
position: absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
z-index:10;
background-color: #e2e2e2;
text-transform: uppercase;
border:8px solid #fff;
font-weight:bold;
font-size:20px;
color:#a2a2a2;
width: 80px;
height:80px;
font-family: sans-serif;
border-radius:50%;
cursor: pointer;
outline:none;
letter-spacing: 1px;
}