There is a horizontal menu:
On different pages it is different, both in the width of the components (from one short word to several long words) and by their number. The total width can greatly exceed the permissible width of the parent.
It is required to display this menu in one line, on the principle of "carousel" . As, for example, here , only instead of the images to scroll through the menu components. The problem is exacerbated by a rubber design.
It turns out that we need a carousel of unknown width for elements of unknown width.
I would like to find a jQuery plugin , but I don’t manage to google the right carousel needed in the legion of ordinary merry-go-rounds.
Tell me, please, how and where to find solutions? Can anyone come across a suitable plugin? You can, of course, try to write yourself, but the task seems too complicated for me at the moment (offhand it is no longer clear how to draw elements as an endless line, how to calculate its width, how to determine that the line has docked to the border, etc.)