Skip to content

Commit

Permalink
add parallax functionality to spacer
Browse files Browse the repository at this point in the history
  • Loading branch information
gracielundell committed Jan 6, 2019
1 parent 44d54a5 commit 50ec73e
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 41 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
62 changes: 32 additions & 30 deletions assets/css/master.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assets/css/master.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/imgs/header3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/scss/page_sections/_about.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
.container--about {
z-index: 5;
position: relative;
top: -200px;
h1, h5 {
color: $teal;
}
Expand Down
6 changes: 5 additions & 1 deletion assets/scss/page_sections/_hero.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.container--hero {
background: url("../imgs/header2.png");
background-repeat: no-repeat;
background-size: cover;
height: 85vh;
height: 125vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 0;
position: relative;
top: -20px;
.hero--text {
width: 75%;
color: white;
Expand Down
25 changes: 17 additions & 8 deletions assets/scss/page_sections/_spacer.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
.container--spacer {
background: url("../imgs/middle2.png");
background-size: cover;
background-repeat: no-repeat;
background-position: right;
height: 60vh;
width: 100%;
margin: 3em 0;
// .container--spacer {
// background: url("../imgs/header3.png");
// background-size: cover;
// background-repeat: no-repeat;
// background-position: right;
// height: 100vh;
// width: 100%;
// // margin: 3em 0;
// position: relative;
// top: -200px;
// z-index: 1;
// }

.parallax-container {
.parallax {
height: 400px;
}
}
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,16 @@ <h3>Community Values</h3>
</div>
</div>

<div class="container--spacer">
<!-- <div class="container--spacer">
</div> -->


<div class="parallax-container">
<div class="parallax"><img src="assets/imgs/header3.png"></div>
</div>


<div class="container container--coc">
<h3>The Women Who Code</h3>
<h1>CODE OF CONDUCT</h1>
Expand Down
6 changes: 6 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ document.addEventListener('DOMContentLoaded', function() {
var elems = document.querySelectorAll('.collapsible');
var instances = M.Collapsible.init(elems);
});


document.addEventListener('DOMContentLoaded', function() {
var spacer = document.querySelectorAll('.parallax');
var instances = M.Parallax.init(spacer);
});

0 comments on commit 50ec73e

Please sign in to comment.