codyhouse / codyhouse-framework

A lightweight front-end framework for building accessible, bespoke interfaces.
https://codyhouse.co/
MIT License
1.16k stars 173 forks source link

single element in carousel #34

Closed starchild closed 5 years ago

starchild commented 5 years ago

We have the use case scenario where we only want to show a single item in the carousel.

I've tried setting .carousel__list width to 100%, but when I reduce the width of the page, the image in the list item disappears.

What's the best way to show just a single large item in the carousel at one time?

sebastiano-guerriero commented 5 years ago

Hi there! Please refer to the Carousel info page for info about how to customize it: https://codyhouse.co/ds/components/info/carousel

I'd suggest to take a look at the slideshow component if you want to show a single item: https://codyhouse.co/ds/components/app/slideshow

starchild commented 5 years ago

I did look at the docs but still found no way to do a single image across all view ports - but you're right - simply using the slideshow will solve this. I didn't think of that.

Thank you.