Skip to content

Commit 294c1ca

Browse files
authored
Update index.html
1 parent 1c27fb4 commit 294c1ca

File tree

1 file changed

+47
-25
lines changed

1 file changed

+47
-25
lines changed

index.html

+47-25
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,65 @@
99
box-sizing: border-box;
1010
}
1111
#bgbox1{
12-
background-image: url('bg1.jpg');
12+
background-image:url(bg2.jpg);
1313
}
1414
#bgbox2{
15-
background-image: url('bg2.jpg');
16-
}
15+
background-image:url(bg5.jpg);
16+
}
1717
#bgbox3{
18-
background-image: url('bg3.jpg');
18+
background-image:url(bg3.jpg);
1919
}
2020
#bgbox1,#bgbox2,#bgbox3{
21-
width: 100%;
22-
height: 100vh;
23-
background-position: center;
24-
background-size: cover;
25-
background-attachment: fixed;
26-
background-repeat: no-repeat;
21+
width:100%;
22+
height:100vh;
23+
background-position:center;
24+
background-size:cover;
25+
background-attachment:fixed;
26+
background-repeat:no-repeat;
27+
}
28+
h1{
29+
position: relative;
30+
top: 300px;
31+
left: 50%;
32+
transform: translate(-50%,-50%);
33+
font-size: 24px;
34+
letter-spacing:3px;
35+
text-align:center;
36+
color:white;
37+
display:inline-flex;
38+
vertical-align:middle;
39+
background-color: black;
40+
padding: 18px 36px;
41+
border: 1px solid white;
42+
background-color: transparent;
43+
}
44+
h2{
45+
padding:80px;
46+
font-size: 18px;
2747
}
2848
</style>
2949
</head>
30-
3150
<body>
32-
<div id="bgbox1">
33-
</div>
3451

35-
<center style="background:#000;">
36-
<h2 style="color:white;">Scroll up and down to see Parallax Effect.</h2>
37-
</center>
52+
<div id="bgbox1">
53+
<h1>PARALLAX</h1>
54+
</div>
55+
56+
<center style="background:#000;">
57+
<h2 style="color: white;">Scroll up and down to see Parallax effect</h2>
58+
</center>
59+
60+
<div id="bgbox2">
61+
<h1>NO JAVASCRIPT</h1>
62+
</div>
3863

39-
<div id="bgbox2">
40-
<h1>NO JAVASCRIPT</h1>
41-
</div>
64+
<center style="background:#fff;">
65+
<h2 style="">SCROLL DOWN!</h2>
66+
</center>
4267

43-
<center style="background:#fff;">
44-
<h2 style="color:black;">Scroll Down!</h2>
45-
</center>
68+
<div id="bgbox3">
69+
<h1>COOL EFFECT</h1>
70+
</div>
4671

47-
<div id="bgbox3">
48-
<h1>COOL EFFECT</h1>
49-
</div>
5072
</body>
5173
</html>

0 commit comments

Comments
 (0)