A
A
Alexander Timofeev2015-10-29 13:24:24
css
Alexander Timofeev, 2015-10-29 13:24:24

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).

3py2HmW.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2015-10-29
@aldtimofeev

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 question

Ask a Question

731 491 924 answers to any question