forked from khushi-purwar/WebDev-ProjectKart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
114 lines (102 loc) · 2.66 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Parallax Website</title>
<style>
body{
overflow-x: hidden;
}
.paralax{
position: absolute;
height: 100%;
}
.paralax-item{
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
}
.p-item1{
background: url("m_1.png") center/cover no-repeat;
}
.p-item3{
background: url("m_3.png") bottom/100% no-repeat ;
background-size: cover;
background-position: center;
z-index: 2;
}
.p-item4{
position: absolute;
top: 0;
left: 0;
width: 10000%;
height: 100%;
content: '';
background-size: contain;
background-position: center;
animation: marquee 20s linear infinite;
}
/* .p-item4::before{
position: absolute;
top: 0;
left: 0;
width: 1000%;
height: 100%;
} */
@keyframes marquee{
0%{
transform: translate3d(0,0,0);
}
100%{
transform: translate3d(-200vw,0,0);
}
}
.container{
position: relative;
z-index: 1;
max-width: 1140px;
margin: 0 auto;
margin-top: 100vh;
}
.content-header{
font-family: sans-serif;
color: white;
text-align: center !important;
text-transform: uppercase;
margin-right: -16%;
}
.content-header h1{
font-size: 115px;
font-weight: 600;
color: white;
margin-bottom: -40px;
}
.content{
width: 200px;
height: auto;
margin-right: 40px;
}
</style>
</head>
<body>
<div class="paralax">
<div class="paralax-item p-item1"></div>
<div class="paralax-item p-item2"></div>
<div class="paralax-item p-item3"></div>
<div class="paralax-item p-item4"></div>
</div>
<div class="container">
<div class="content-header">
<h1>Parallax design</h1>
</div>
<div class="content">
<img src="astro.png" alt="">
</div>
</div>
<script src="paralax.js"></script>
</body>
</html>