Answer the question
In order to leave comments, you need to log in
Why doesn't parallax work in Firefox?
Good day everyone!
Tell me, please, what am I doing wrong: I installed parallax in the banner, it is displayed perfectly everywhere, and it is in the Firefox browser that the content abruptly jumps down and it seems to “get stuck” there.
I will be very, very grateful.
https://codepen.io/vatrushkasmolokom/pen/qLXEmb
Answer the question
In order to leave comments, you need to log in
In my opinion, the behavior of Firefox is quite acceptable, although the situation is ambiguous and of course it is worth looking at the specifications. You specify top
for .banner__content
which is inside .container-fluid
. The difference in approaches is that Firefox considers the indent from the parent element, and Chrome - from the element for which position: relative
.
If you apply top
on .banner__content
- starts to work everywhere.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question