-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Carousel #29
Comments
Hi, Please, provide additional info, a live demo would help to give a proper answer. You can easily create a demo here - https://fancyapps.com/playground/ - buy you can use any other similar service (Codepen/Codesandbox/etc). Basically, you control the width of the slide using CSS. For example, in this demo - https://fancyapps.com/playground/g9 - each slide has a width of 30%. Images are large enough to fill the slide and they have a maximum width of 100%, so that they are responsive. |
Thanks for the example. I have corrected my code and there are no such failures. I think this example should be placed in the documentation. It will be useful to many. |
It only remains to understand how to align the photo horizontally. They are different in height. |
Since slides are flex items, you can easily align content as you need. Also, all slides will be the same height, except for virtual slides. btw, if you wonder how to combine everything, here is a quick demo - https://fancyapps.com/playground/pL |
Installed the carousel. Scrolls with a large white space. Something went wrong???
![2](https://user-images.githubusercontent.com/65539718/126147136-866ef404-8513-4250-9dce-b1b935634ee9.JPG)
![1](https://user-images.githubusercontent.com/65539718/126147160-d94728c4-0c9e-43d5-a380-2fbf30ae5437.JPG)
myCarousel = new Carousel(document.querySelector("#carousel"),{slides: slide,'dragFree':true});
The text was updated successfully, but these errors were encountered: