I have the following HTML structure:
<section class="mysection">
<div class="parallax"></div>
</section>
<section class="some-text">
blah.....
</section>
Before using parallax on the parallax
div, some text
just sits immediately below the bottom border of mysection
. This is the CSS for parallax
.
.parallax{
width: 90%;
margin-left: auto;
margin-right: auto;
}
When I scale parallax
by 1.11111111, the parallax
uses 100% width of the viewport. However, some text
does not sits right beneath the parallax
anymore. Instead, it overlaps with the parallax
area. Here is a picture of a real-life situation:
How can I make some text
always sits beneath the bottom border of mysection
without overlap?
To be more detailed, I use a tool called ScrollMagic for this work if this is relevant.