rcarousel icon indicating copy to clipboard operation
rcarousel copied to clipboard

width: auto - support for images of different widths

Open stanislaw opened this issue 13 years ago • 5 comments

Hello,

Is it difficult for Rcarousel to provide an option so I can do rcarousel() on fx 10 images, each having its own size, and not resulting in each image in carousel having width set by 'width' parameter?

It could be like having a possibility to set width option on 'inherit' or 'auto'.

Would be great to have it.

Thanks.

stanislaw avatar Jun 07 '12 20:06 stanislaw

Hello,

You mean a fluid carousel. rcarousel isn’t fluid and I don’t plan to do it. But maybe in the future? Who knows?

ryrych avatar Jun 10 '12 19:06 ryrych

I am temporarily using this one: http://www.smoothdivscroll.com/

It allows images of different sizes and has API method for recalculation of width of entire container if I add/remove elements. (see recalculateScrollableArea on http://www.smoothdivscroll.com/publicMethods.html)

Yours rcarousel seems more robust to me than smoothdivscroll, but lacks this feature that's why I asked.

Now I see that rcarousel design and purpose are slightly different, that is why it is harder to implement this feature in rcarousel.

Thanks for answer.

stanislaw avatar Jun 10 '12 19:06 stanislaw

Yeah Stanislaw, there’s no ‘one fit all’ option. BTW. how is it going in Ukraine? The same shit with Euro as in Poland? :D I don’t know if it is also a Ukrainian word, but I would call it bardak. :D

ryrych avatar Jun 10 '12 19:06 ryrych

"The same shit" - this is IT definitely ;) 'Bardak' is standing for it also. fx. Ukrainian train schedule is half rewritten. Though this way I am running into offtop here. ;)

stanislaw avatar Jun 10 '12 20:06 stanislaw

Hehe, I know what you talking about. :D

ryrych avatar Jun 11 '12 07:06 ryrych