Skip to content

Commit 461eb27

Browse files
authored
Merge pull request #1065 from codeRIT/bh-1040
Parallax Hero SVGs
2 parents aa52ffc + 3787348 commit 461eb27

File tree

1 file changed

+21
-5
lines changed

1 file changed

+21
-5
lines changed

sass/main.scss

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ $event-count: 6;
7878
// Transition all elements on the screen
7979
// (except FAQ panel, which already has a transition,
8080
// and the section days, which need no transition.)
81-
&:not(nav.link):not(.panel):not(#days):not(.number):not(#desk) {
81+
&:not(.link):not(.panel):not(#days):not(.number):not(#desk):not(#wire) {
8282
transition: all 1s ease;
8383
}
8484

@@ -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%;
@@ -231,6 +231,7 @@ nav {
231231
height: 100%;
232232
width: 100%;
233233
background-position: bottom right;
234+
background-attachment: fixed;
234235
}
235236

236237
#desk {
@@ -263,12 +264,14 @@ nav {
263264
#shapes {
264265
position: absolute;
265266
right: 0;
266-
height: 900px;
267+
height: 110%;
267268
width: 900px;
268269
margin-top: -80px;
269270
background-image: url("../assets/shapes.svg");
270271
background-repeat: no-repeat;
271-
background-position: center;
272+
background-position: 100% 30%;
273+
background-attachment: fixed;
274+
background-size: 900px;
272275
z-index: 1;
273276
}
274277
}
@@ -823,7 +826,9 @@ footer {
823826
}
824827

825828
#desk-container {
826-
right: -100px;
829+
#desk, #wire {
830+
background-position: calc(100% + 100px) bottom;
831+
}
827832
}
828833

829834
#shelf {
@@ -920,6 +925,17 @@ footer {
920925
width: 100%;
921926
}
922927

928+
#hero {
929+
#desk-container {
930+
right: -100px;
931+
932+
#desk, #wire {
933+
background-attachment: scroll;
934+
background-position: right bottom;
935+
}
936+
}
937+
}
938+
923939
#leadership #leaders {
924940
grid-template-columns: repeat(4, $leadership-size-mobile);
925941
justify-content: space-between;

0 commit comments

Comments
 (0)