Skip to content

Yofou/svelte-embla

Repository files navigation

Svelte Embla

Svelte Embla is a Svelte Action Wrapper for Embla Carousel which allows you to easily integrate any kind of carousel to your heart disires using Embla Carousel in a Svelte project.

Quich Start

npm install svelte-embla
<script>
	import embla from 'svelte-embla';
</script>

<div class="embla" use:embla>
	<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>