-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimpleSlider.css
More file actions
66 lines (66 loc) · 1.05 KB
/
simpleSlider.css
File metadata and controls
66 lines (66 loc) · 1.05 KB
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
html,body{
height: 100%;
margin: 0;
}
.movedRight-content{
-webkit-transform:translateX(30%);
}
.movedLeft-content{
-webkit-transform:translateX(-30%);
}
.main-content{
-webkit-transition: all 0.3s ease-in-out;
background-color: green;
width: 100%;
margin-right: auto;
margin-left: auto;
height: 100%;
position: absolute;
z-index: 2;
}
.trigger{
position: relative;
color: midnightblue;
border-radius: 10px;
background-color: #ddd;
padding: 15px;
border: solid 1px #ccc;
width: auto;
font-weight: bold;
text-align: center;
margin-left: auto;
margin-right: auto;
width: 150px;
}
.trigger-right{
top: 50%;
}
.trigger-left{
top: 45%;
}
.trigger:hover{
background-color: grey;
}
.right-slide{
z-index: 1;
position: absolute;
right: 0;
width: 30%;
padding: 30px;
box-sizing: border-box;
background-color: blue;
height: 100%;
}
.left-slide{
z-index: 1;
position: absolute;
left: 0;
width: 30%;
padding: 30px;
box-sizing: border-box;
background-color: red;
height: 100%;
}
.none{
display: none;
}