forked from MaKleSoft/spin-select
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spin-select.css
66 lines (57 loc) · 1.13 KB
/
spin-select.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
:host {
display: block;
position: relative;
overflow: hidden;
-webkit-user-select: none;
perspective: 1000px;
}
::content > * {
display: none;
}
#optionsWheel {
-webkit-transform-style: preserve-3d;
transform-style: preserve-3d;
overflow: visible;
position: relative;
height: 100%;
}
.option {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto 0;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
text-align: center;
height: 50px;
line-height: 50px;
cursor: pointer;
}
.overlay {
pointer-events: none;
}
.slid {
height: 35px;
border-top: solid 1px;
border-bottom: solid 1px;
}
.screen {
background: rgba(255, 255, 255, 0.7);
}
.screen::after {
content: '';
display: block;
position: absolute;
width: 100%;
height: 50px;
}
.screen.top::after {
top: 0;
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}
.screen.bottom::after {
bottom: 0;
background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}