So I am having an issue with building a vertical parallax scrolling website.
At the moment I am using ScrollMagic
to create parallax sections, and it works perfectly. The issue comes when I try to put content on top of it. For my situation I am using Bootstrap's
.container
so I can put my content in different rows,columns and etc.
I can see the flaw, it is in the structure itself but I am trying to find a way how to hack it, any ideas?
<!-- Main Container -->
<div id="fullpage">
<div class="spacer s0"></div>
<!-- Section -->
<div class="section">
<div class="absolute main-wrapper container">
<div class="row">
<p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Modi amet asperiores, illo sapiente, magni fuga distinctio quisquam tenetur error natus accusantium cum veniam voluptatem! Id qui at quas culpa facere.</p>
</div>
</div>
<div id="parallax1" class="parallaxParent">
<div style="background-image: url(img/bcg_slide-1.jpg);">
</div>
</div>
</div>
<!-- /Section -->
<!-- Section -->
<div class="spacer s1">
<div class="box2 blue">
<p>Content 1</p>
</div>
</div>
<!-- /Section -->
<!-- Section -->
<div class="spacer s0"></div>
<div class="section">
<div id="parallax2" class="parallaxParent">
<div style="background-image: url(img/bcg_slide-2.jpg);"></div>
</div>
</div>
<!-- /Section -->
<div class="spacer s1">
<div class="box2 blue">
<p>Content 2</p>
</div>
</div>
<div class="spacer s0"></div>
<!-- Section -->
<div class="section">
<div id="parallax3" class="parallaxParent">
<div style="background-image: url(img/bcg_slide-3.jpg);"></div>
</div>
</div>
<!-- /Section -->
</div>
So If I put my div
before the background parallax image, It overlaps parallax image, and creates a white container with text. I have done position absolute
, but that means I cannot use bootstrap's grid
.
I tried putting inside the div
with parallax background.
I am opened to ideas.