A
A
Alexander Rybakov2019-05-27 00:51:54
JavaScript
Alexander Rybakov, 2019-05-27 00:51:54

How to make a row with horizontal scrolling without clipping?

Good afternoon friends!
I want to implement such a thing:
5ceb098e48cca173539451.png
The truck is laid out on flex, the width is calculated in js (the width of all blocks with content + the indents between them without the last one are stupidly added up).
overflow-x: auto; set for the yellow block
The truck is clipped with yellow borders. It is required that there is a scroll along the width of the yellow block, and a blur in the green areas. There is nothing complicated in the blur - if only the track is not cut off by yellow borders.
And yes, it is necessary that the track starts from the left yellow border!
Thank you very much in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Shohruh Shaimardonov, 2019-05-27
@joeberetta

You have almost everything (judging by the description of the task) you just need to make a blur. To do this, use ::beforeand ::after, style them. If a solution is needed for modern browsers, then it is enough for them to specify blur()in css, otherwise through js or the same css, just a little more code instead of blur

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question