Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a semi-transparent container over background image lag #290

Open
pjr94 opened this issue Nov 6, 2019 · 1 comment
Open

Using a semi-transparent container over background image lag #290

pjr94 opened this issue Nov 6, 2019 · 1 comment

Comments

@pjr94
Copy link

pjr94 commented Nov 6, 2019

Hi there.
I have a background parallax image filling 100vh, and I want the bottom half the screen to be covered in a tansparent container (rgba(x,x,x,0.8)) for a background for some text. Both of these divs end at the same point another parallax bg image follows it. This looks fine until I scroll, which sometimes reveals a strip of the (first) background image between the two sections for a split section. The bottom of the "content" div doesn't stay aligned with the first "parallax-window" div and lags behind it somewhat. I've included an example of the code, hope that makes sense. Thanks.

<div class="parallax-window" height="100vh" .... >
    <div class="content" height="50vh" bottom="0" ....>
        .....content....
    </div>
</div>
<div class="parallax-window" ...>
    .....
</div>
@JustFowl
Copy link

JustFowl commented Dec 1, 2019

Me too, I've been trying all day to fix this. Anyone else get it to work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants