-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
43 lines (43 loc) · 642 Bytes
/
style.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
* {
margin: 0;
padding: 0;
}
.container {
width: 100%;
height: 100vh;
background: #f3fbff;
display: flex;
align-items: center;
justify-content: center;
}
.img-box {
width: 60%;
margin: auto;
line-height: 0;
background-image: url(images/background.png);
overflow: hidden;
position: relative;
}
.img-wrap {
width: 20px;
position: absolute;
left: 0;
top: 0;
overflow: hidden;
}
span {
width: 1px;
height: 100%;
cursor: ew-resize;
background: #fff;
position: absolute;
left: 20px;
top: 0;
}
.arrow {
width: 40px;
position: absolute;
top: 50%;
margin-left: -20px;
margin-top: -20px;
}