B
B
Banan442020-08-07 13:16:35
css
Banan44, 2020-08-07 13:16:35

How to remove out of bounds during animation (prohibit any movement along the X axis)?

I have a page where elements slide out when scrolling, but the problem is that they create scrolling, I removed it using the overflow-x property with a value of hidden. But still there is a flaw. There is a chance that when a person refreshes the page, they will get to the end of this scroll and get this:
5f2d2a2cc6e21971999880.jpeg
I tried to change the x-axis scroll to 0 during the animation (window.pageXOffset), but it did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
fallus, 2020-08-07
@Banan44

Replace animItems in HTML with animationItems :)
In the console, it says, “I can't find animItems!”.
The JS code must come before the , in this case. </body>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question