-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (76 loc) · 1.39 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
*{
margin: 0;
padding: 0;
font-family: 'Lato', sans-serif;
color: #ffffff;
}
.container{
position: relative;
}
header{
text-align: center;
position: absolute;
top: 0;
left: 0%;
/*width: 100%;*/
height: 100%;
z-index: 100;
}
header label{
display: inline-block;
background-color: darkslategrey;
padding: 10px;
margin: 0;
border-right: 1px solid gray;
cursor: pointer;
color: white;
}
header label:hover{
background-color: gray;
}
/*hiding the radios*/
input{
transform: translateX(-99999px);
height: 0;
}
.slides-container{
position: relative;
height: 100vh;
width: 100%;
}
.slide{
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
text-align: center;
transition: left 2s ease;
}
section h1{
transform: translateY(400px);
transition: transform 1s ease 2s;
}
.slide-one{
background: url("./images/android.jpg");
background-size: cover;
}
.slide-two{
background: url("./images/laptop.jpg");
background-size: cover;
}
.slide-three{
background: url("./images/mountains.jpg");
background-size: cover;
}
.slide-four{
background: url("./images/valley.jpg");
background-size: cover;
}
input[id^="slide"]:checked + .slide{
z-index: 10;
left: 0;
}
input[id^="slide"]:checked + .slide h1{
transform: translateY(300px);
}