-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
142 lines (118 loc) · 1.97 KB
/
index.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
*{
margin:0;
padding:0;
box-sizing: border-box;
}
html{
font-size: 10px;
}
body{
background-color: black;
}
.img_slider{
width: 100%;
height: 100vh;
position: relative;
padding-left: 25%;
overflow: hidden;
}
.images{
width: inherit;
height: inherit;
position: absolute;
opacity: 0;
animation: cycle 31s infinite;
/*time is 4*10+1(n is number of images)*/
}
.images:nth-child(1){
animation-delay: 0s;
}
.images:nth-child(2){
animation-delay: 10s;
}
.images:nth-child(3){
animation-delay: 20s;
}
/*all delay are (10*n-10)*/
.images img{
width: 50%;
height: 100%;
object-fit: cover;
}
#image_text{
width: 25%;
position: absolute;
top: 50%;
left:0;
transform: translateY(-50%);
background-color: rgba(0,0,0,0.7);
color: white;
padding: 10rem 5rem;
}
#image_text h5{
font-size: 5rem;
text-transform: uppercase;
letter-spacing: 3px;
margin-bottom: 2rem;
}
#image_text p{
font-size: 2rem;
letter-spacing: 1px;
font-weight: 400;
}
@keyframes cycle{
25%{
opacity: 1;
}
40%{
opacity: 0;
}
}
@media screen and (max-width: 1500px){
#image_text{
width: 40%;
padding: 7rem 4rem;
}
#image_text h5{
font-size: 5rem;
}
.img_slider{
padding-left: 20%;
}
.images img{
width: 60%;
}
}
@media screen and (max-width: 1000px){
#image_text{
width: 50%;
padding: 5rem 2rem;
}
#image_text h5{
font-size: 4rem;
}
.img_slider{
padding-left: 12.5%;
}
.images img{
width: 75%;
}
}
@media screen and (max-width: 770px){
#image_text{
width: 100%;
padding: 2rem;
top: initial;
bottom:0;
transform: initial;
}
#image_text h5{
font-size: 3rem;
}
.img_slider{
padding-left: 0%;
}
.images img{
width: 100%;
}
}