-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.css
82 lines (77 loc) · 1.85 KB
/
index.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
.picker-wrapper,
.picker-wrapper * {
box-sizing: border-box;
-webkit-user-select: none;
font-family: helvetica
}
.picker-wrapper {
text-align: center;
position: relative;
height: 210px;
display: inline-block;
line-height: 30px;
width: 100%;
font-size: 20px;
perspective: 1000px;
perspective-origin: center center;
}
.picker-scroller {
-webkit-transition : -webkit-transform 100ms ease;
-webkit-transform : translateZ(-90px) rotateX(0deg);
-webkit-transform-style : preserve-3d;
height : 100%;
/*
overflow: auto;
height: 100%;
position: absolute;
top: 0;
width: 100%;
padding-top: 90px;
padding-bottom: 90px;
*/
}
.picker-scroller .option{
position: absolute;
backface-visibility: hidden;
-webkit-backface-visibility: hidden;
width : 100%;
transition: all 300ms;
color : black;
transform-origin: 50% 50%;
-webkit-transform-style : preserve-3d;
}
.picker-up {
position: absolute;
top: 0;
z-index: 2;
background: rgba(256, 256, 256, 0.6);
width: 100%;
height: 90px;
border-bottom: 1px solid lightgray;
}
.picker-down {
position: absolute;
top: 120px;
z-index: 2;
background: rgba(256, 256, 256, 0.6);
width: 100%;
height: 90px;
border-top: 1px solid lightgray;
}
.clone-scroller {
-webkit-box-shadow: inset 0 20px 24px 3px white, inset 0 -20px 24px 3px white;
-ms-box-shadow: inset 0 10px 24px 3px white, inset 0 -20px 24px 3px white;
-moz-box-shadow: inset 0 10px 24px 3px white, inset 0 -20px 24px 3px white;
box-shadow: inset 0 10px 24px 3px white, inset 0 -20px 24px 3px white;
z-index: 5;
overflow: auto;
height: 100%;
position: absolute;
top: 0;
width: 100%;
padding-top: 90px;
padding-bottom: 90px
}
.clone-scroller .option {
visibility: hidden;
}