yifaneye / react-gallery-carousel

Carousel component 🎠🎠🎠 supporting touch, mouse, keyboard, thumbnails, fullscreen, lazy loading, SSR and customisations. 👉 Live editor: https://yifanai.com/rgcd1
https://yifanai.com/rgc
MIT License
215 stars 30 forks source link

How to use array of photos in carousel user managed slide ? #53

Closed AnmolChhabra98 closed 2 years ago

AnmolChhabra98 commented 3 years ago

Hi yifaneye,

I am trying to make , user managed slide from an object which is having different kind of values and Photos[] array is one of among them but I am unable to use my Photos[] properly , when I used it with the map function of array it is showing photos but it is overlapping them on other slides too . Can you please tell me how can I do this properly so that each photo comes on different slide ?

Thanks,

yifaneye commented 3 years ago

Hi @AnmolChhabra98 ! Thank you for raising this issue up. 😀

I understand that you are currently experiencing problems! Would you like to show us your code, the current behaviour and your expected behaviour? Thanks!

In general, user-managed slides are through the children prop. They are HTML element(s) to be placed into the carousel for user-managed slides. It (they) will be placed only if the 'images' prop is falsy. There is a precedence here, as in images > children.