Answer the question
In order to leave comments, you need to log in
How, let's say, to replace the scrollbar with arrows on the sides of the content area?
Those. as in the screenshot - add arrows on the sides to move the content, well, hide the scroll (it's clear how).
Answer the question
In order to leave comments, you need to log in
Wrap the wide block in a block with overflow: hidden, this will remove the scrollbar.
Using js, we compare the width of both blocks. We hang handlers when clicking on the arrows.
When clicked, we shift the inner, wide block. Through position: relative or negative margin, for example.
It is necessary to make the shift smooth. .animate() or via css.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question