Carouhell - fit into viewport width
Back to Carouhell
Carouhell can be tweaked to rotate as many pictures as fits into viewport. Add this CSS:
- display: flex; flex-wrap: wrap; justify-content: space-evenly; to carouhell class
- fixed width to carouhell liitem
- fixed height to both carouhell class and carouhell item
- set the transition duration low as the animation is jerky in slow shift
Try to play with viewport width in the example below. The contents adjusts to fill 100% width.