My last items count as one item and wont align them self to the left of my container. #7741
Unanswered
FreakeyPlays
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am verry new to swiper (about 2 hours) and i wanted to make a slider, that shows 3 cards and align to my container. On the initial state the first chard schuld align on the left of my container and have one "empty" card to the left and one visible card to the right (like in the image below). after swiping the "empty" card schuld disappear and the second card from before should be left aligned to the container with a new card to the right and the old first card to the left.
Currently i have all my cards next to each other and i can swipe through them. But my last cards (depending on the window size how many cards) wont align to the left of the container and most of the time my last two items Count as one Item. How can i get them to align them to the left of my container and be a separate item?
Here is my React code:
Here a sketch how I imagine my slider initial state:
Here a Screenshot from my "last" card/cards taht coutn as one and wont align left (The container is indicated by the Lorem text above):
Beta Was this translation helpful? Give feedback.
All reactions