File tree 1 file changed +47
-25
lines changed
1 file changed +47
-25
lines changed Original file line number Diff line number Diff line change 9
9
box-sizing : border-box;
10
10
}
11
11
# bgbox1 {
12
- background-image : url ('bg1 .jpg' );
12
+ background-image : url (bg2 .jpg);
13
13
}
14
14
# bgbox2 {
15
- background-image : url ('bg2 .jpg' );
16
- }
15
+ background-image : url (bg5 .jpg);
16
+ }
17
17
# bgbox3 {
18
- background-image : url (' bg3.jpg' );
18
+ background-image : url (bg3.jpg);
19
19
}
20
20
# 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 ;
27
47
}
28
48
</ style >
29
49
</ head >
30
-
31
50
< body >
32
- < div id ="bgbox1 ">
33
- </ div >
34
51
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 >
38
63
39
- < div id =" bgbox2 ">
40
- < h1 > NO JAVASCRIPT </ h1 >
41
- </ div >
64
+ < center style =" background:#fff; ">
65
+ < h2 style ="" > SCROLL DOWN! </ h2 >
66
+ </ center >
42
67
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 >
46
71
47
- < div id ="bgbox3 ">
48
- < h1 > COOL EFFECT</ h1 >
49
- </ div >
50
72
</ body >
51
73
</ html >
You can’t perform that action at this time.
0 commit comments