-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
82 lines (73 loc) · 1.34 KB
/
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
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
*,
html,
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
/* Fill up the entire screen and beyond */
min-height: 100vh;
height: 100%;
background-image:url("index.jpg");
background-repeat: no-repeat;
background-position:center;
background-attachment: fixed;
background-size: cover;
/* this will push the container to the middle of the screen */
display: flex;
justify-content: center;
align-items: center;
}
.container {
/* width should not be more than 800px */
max-width: 800px;
position: relative;
z-index:unset;
}
.container:hover button {
opacity: 1;
transition-delay: 0s;
}
.slider {
width: 800px;
height: 520px;
position: relative;
}
img {
position: absolute;
top: 0;
left: 0;
width: 800px;
opacity: 0;
transition: opacity 0.2s ease-out;
}
.control {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
button {
position: absolute;
background-color: transparent;
border: none;
cursor: pointer;
color: white;
font-weight: 900;
font-size: 30px;
opacity: 0;
transition: opacity 300ms ease-out;
transition-delay: 0.2s;
}
button#prev {
/* top of the button will be at 50% of the height of the control */
top: 50%;
left: -10%;
}
button#next {
/* top of the button will be at 50% of the height of the control */
top: 50%;
right: -10%;
}