-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslider.css
102 lines (96 loc) · 2.47 KB
/
slider.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
* {
box-sizing: border-box; }
html {
height: 100%;
width: 100%; }
body {
width: 100%;
min-height: 100%;
margin: 0; }
.slider-container {
width: 100%;
height: 50vh;
position: relative; }
.slider-container > .indicator {
width: 30%;
bottom: 15px;
position: absolute;
left: 50%;
display: flex;
transform: translate(-50%);
height: auto;
justify-content: center; }
.slider-container > .indicator > .circle {
background: rgba(245, 245, 245, 0.7);
border-radius: 50%;
height: 13px;
width: 13px;
margin-left: 8px;
transition: background 0.3s ease-in; }
.slider-container > .slide {
width: 100%;
height: 100%;
position: absolute;
left: 0;
top: 0;
overflow: hidden;
transition: left 0.3s ease-in, right 0.3s ease-in; }
.slider-container > .slide:hover > .content {
opacity: 1; }
.slider-container > .slide > img {
width: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1; }
.slider-container > .slide > .content {
width: 50%;
height: 100%;
background: transparent;
position: relative;
padding: 20px;
padding-left: 60px;
opacity: 0;
color: white;
font-family: "Quicksand", sans-serif;
transition: opacity 0.3s ease-in; }
.slider-container > .slide > .content:before {
content: "";
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 1;
z-index: -1;
background: -webkit-linear-gradient(to right, black, rgba(0, 0, 0, 0));
background: -moz-linear-gradient(to right, black, rgba(0, 0, 0, 0));
background: linear-gradient(to right, black, rgba(0, 0, 0, 0)); }
.slider-container > .button {
width: 30px;
height: 30px;
border-radius: 50%;
position: absolute;
z-index: 99;
top: 50%;
transform: translate(0, -50%);
border-color: transparent;
transition: border-color 0.3s; }
.slider-container > .button > i {
display: block;
width: 100%;
height: 100%;
position: relative;
color: white; }
.slider-container > .button > i::before {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%); }
.slider-container > .button:hover {
border: 2px solid white; }
#left_arrow {
left: 20px; }
#right_arrow {
right: 20px; }
/*# sourceMappingURL=slider.css.map */