Skip to content

[Help]: How to handle missing images? #864

Closed Answered by davidjerleke
s-peryt asked this question in Help
Discussion options

You must be logged in to vote

@s-peryt thanks for your question. I don’t understand the question because Embla doesn’t interfere with your markup? It lets you choose whatever HTML you want. Have you read the docs?

Just put anything you want, images or anything else inside the slide elements (with the class embla__slide in this example):

<script>
  import emblaCarouselSvelte from 'embla-carousel-svelte'
</script>

<div class="embla" use:emblaCarouselSvelte>
  <div class="embla__container">
    <div class="embla__slide">Slide 1</div>
    <div class="embla__slide">Slide 2</div>
    <div class="embla__slide">Slide 3</div>
  </div>
</div>

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by s-peryt
Comment options

You must be logged in to vote
1 reply
@davidjerleke
Comment options

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 svelte Issue is related to Svelte
2 participants