glide icon indicating copy to clipboard operation
glide copied to clipboard

Basic question about using modules

Open jimmyff opened this issue 2 years ago • 2 comments

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?

jimmyff avatar Mar 23 '23 13:03 jimmyff

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

image

AshotAleqsanyan96 avatar Apr 15 '23 00:04 AshotAleqsanyan96