glide
glide copied to clipboard
Disappear slide after drag
I tried out the Glide today and the tutorials and found that the 0 and 1 slide will disappear right after slide to the left or right.
<div class="glide bg-orange-600">
<div class="glide__track" data-glide-el="track">
<ul class="glide__slides">
<li class="glide__slide">0</li>
<li class="glide__slide">1</li>
<li class="glide__slide">2</li>
</ul>
</div>
</div>
<link rel="stylesheet" href="/node_modules/@glidejs/glide/dist/css/glide.core.min.css">
<link rel="stylesheet" href="/node_modules/@glidejs/glide/dist/css/glide.theme.min.css">
<script>
import Glide from '@glidejs/glide'
new Glide('.glide').mount()
</script>
First of all, You've to add the CSS to it otherwise it will be harder to manipulate the carousal.