Skip to content

Commit 425af21

Browse files
committed
Parallaxing the desk
1 parent 988ba06 commit 425af21

1 file changed

Lines changed: 23 additions & 5 deletions

File tree

sass/main.scss

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ nav {
231231
height: 100%;
232232
width: 100%;
233233
background-position: bottom right;
234+
background-attachment: fixed;
234235
}
235236

236237
#desk {
@@ -823,7 +824,12 @@ footer {
823824
}
824825

825826
#desk-container {
826-
right: -100px;
827+
//original
828+
//right: -100px;
829+
830+
#desk, #wire {
831+
background-position: calc(100% + 100px) bottom;
832+
}
827833
}
828834

829835
#shelf {
@@ -995,8 +1001,14 @@ footer {
9951001
}
9961002

9971003
#desk-container {
998-
right: -200px;
999-
width: 120%;
1004+
//original
1005+
//right: -200px;
1006+
//width: 120%;
1007+
1008+
#desk, #wire {
1009+
background-position: calc(100% + 200px) bottom;
1010+
background-size: 120%
1011+
}
10001012
}
10011013

10021014
#shelf {
@@ -1171,8 +1183,14 @@ footer {
11711183
}
11721184

11731185
#desk-container {
1174-
right: -160px;
1175-
width: 160%;
1186+
//original
1187+
//right: -160px;
1188+
//width: 160%;
1189+
1190+
#desk, #wire {
1191+
background-position: calc(100% + 160px) bottom;
1192+
background-size: 160%
1193+
}
11761194
}
11771195

11781196
#register {

0 commit comments

Comments
 (0)