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

Basic question about using modules #656

Open
jimmyff opened this issue Mar 23, 2023 · 1 comment
Open

Basic question about using modules #656

jimmyff opened this issue Mar 23, 2023 · 1 comment

Comments

@jimmyff
Copy link

jimmyff commented Mar 23, 2023

Sorry to ask such a basic question: I'm not using npm, I'm using the files available at the cdn: https://cdnjs.com/libraries/Glide.js/3.2.0 and I'm just importing on my site in the head section using <script> for the js and <link> for the css.

How do I then use the modules like autoplay? I see the doc suggests:

import Glide, { Autoplay } from '@glidejs/glide/dist/glide.modular.esm'

But I don't think this works for me as I'm not using that fancy esm file?

@AshotAleqsanyan96
Copy link

You can use it without any imports: try just calling this:

image

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

2 participants