Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Elementary, I threw those on my knee:
Only it does not take into account a bunch of all sorts of edge-cases, the most obvious: changes in the width in the process of work - you should add another wrapper and ResizeObserver.
But there are also a lot of non-obvious ones, so ready-made libs are usually used for such things.)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question