glide icon indicating copy to clipboard operation
glide copied to clipboard

Disappear slide after drag

Open jamesli2021 opened this issue 2 years ago • 1 comments

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>

jamesli2021 avatar Nov 12 '23 07:11 jamesli2021

First of all, You've to add the CSS to it otherwise it will be harder to manipulate the carousal.

ghost avatar Jan 14 '24 13:01 ghost