How to make scrolling CSS & JS without libraries?

Hello.

How to make a unit that is in the PC version will work like a slider and listen to the back/forward buttons, and the mobile version as usual scrolling css?

5e11135c6dfcd390945507.png

Similar is implemented on the categories list on the https://youla.ru/

Implementation libraries are not interested, we need to minimize the weight of the page and a departure from the pseudo div.
April 4th 20 at 00:48
0 answer

Find more questions by tags CSSJavaScript