K
K
Ksyusha2019-01-16 22:39:17
Layout
Ksyusha, 2019-01-16 22:39:17

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

1 answer(s)
F
Flying, 2019-01-16
@ksyu_gl

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 topfor .banner__contentwhich 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 topon .banner__content- starts to work everywhere.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question