Skip to content

Commit 6458fb8

Browse files
committed
Parallaxing shapes and cleaning code
1 parent 425af21 commit 6458fb8

1 file changed

Lines changed: 4 additions & 13 deletions

File tree

sass/main.scss

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ nav {
217217
font-size: 2em;
218218
}
219219

220-
// Shelf things!
220+
// Hero Graphics
221221
#desk-container {
222222
position: absolute;
223223
height: 100%;
@@ -269,7 +269,9 @@ nav {
269269
margin-top: -80px;
270270
background-image: url("../assets/shapes.svg");
271271
background-repeat: no-repeat;
272-
background-position: center;
272+
background-position: 100% 30%;
273+
background-attachment: fixed;
274+
background-size: 900px;
273275
z-index: 1;
274276
}
275277
}
@@ -824,9 +826,6 @@ footer {
824826
}
825827

826828
#desk-container {
827-
//original
828-
//right: -100px;
829-
830829
#desk, #wire {
831830
background-position: calc(100% + 100px) bottom;
832831
}
@@ -1001,10 +1000,6 @@ footer {
10011000
}
10021001

10031002
#desk-container {
1004-
//original
1005-
//right: -200px;
1006-
//width: 120%;
1007-
10081003
#desk, #wire {
10091004
background-position: calc(100% + 200px) bottom;
10101005
background-size: 120%
@@ -1183,10 +1178,6 @@ footer {
11831178
}
11841179

11851180
#desk-container {
1186-
//original
1187-
//right: -160px;
1188-
//width: 160%;
1189-
11901181
#desk, #wire {
11911182
background-position: calc(100% + 160px) bottom;
11921183
background-size: 160%

0 commit comments

Comments
 (0)