Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disappear slide after drag #677

Open
jamesli2021 opened this issue Nov 12, 2023 · 1 comment
Open

Disappear slide after drag #677

jamesli2021 opened this issue Nov 12, 2023 · 1 comment

Comments

@jamesli2021
Copy link

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>
@ghost
Copy link

ghost commented Jan 14, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant