Skip to content

[Help]: How can I make a Card Carousel #361

Closed Answered by davidjerleke
quick007 asked this question in Help
Discussion options

You must be logged in to vote

Hi @quick007,

Thanks for your question. There's a lot of CSS going on in your code example so I don't know if that's affecting anything in unintended ways. What version are you using? And you didn't share what options you're using? Should the carousel loop or not?

as in there's no weird left margin

The alignment isn't weird. It's the default setup for Embla which will center align the scroll snaps. If you want to clear leading and trailing space use the following option:

{
  containScroll: 'trimSnaps',
}

I also want to add arrows that will go to the next set of cards (not the next card, but to new ones the user can't yet see).

Then you should group your slides. Try using:

{
  slidesTo…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@quick007
Comment options

@davidjerleke
Comment options

Answer selected by quick007
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something
2 participants