-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeforeAndAfter.css
More file actions
68 lines (58 loc) · 1003 Bytes
/
beforeAndAfter.css
File metadata and controls
68 lines (58 loc) · 1003 Bytes
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
.slider {
position: relative;
overflow: hidden;
max-width: 100%;
}
.slider img {
width: 100%;
display:block;
}
.resize {
position: absolute;
top:0;
left: 0;
height: 100%;
width: 50%;
overflow: hidden;
}
.handle { /* Thin line seperator */
position:absolute;
left:50%;
top:0;
bottom:0;
width:4px;
margin-left:-2px;
background: rgba(0,0,0,.5);
cursor: ew-resize;
}
.handle:after { /* Big orange knob */
position: absolute;
top: 50%;
width: 32px;
height: 32px;
margin: -16px 0 0 -16px;
content:'\21d4';
color:white;
font-weight:400;
font-size:18px;
text-align:center;
line-height:32px;
background: hsl(0, 0%, 10%);
border:1px solid hsl(0, 0%, 0%);
border-radius: 50%;
transition:all 0.3s ease;
box-shadow:
0 2px 6px rgba(0,0,0,.3),
inset 0 2px 0 rgba(255,255,255,.5),
inset 0 60px 50px -30px hsl(0, 0%, 20%);
}
.draggable:after {
width: 24px;
height: 24px;
margin: -12px 0 0 -12px;
line-height:24px;
font-size:18px;
}
p.caption {
margin-top: 0;
}