Documentation
Glide — HTML Slider Template
Version 1.0.0 · Vanilla HTML · 10 files · 58 KB
Getting started
- Unzip the download and open index.html in a browser. No server, installation or build step is needed.
- Edit the text directly in the HTML files.
- Change colours, fonts and spacing through the CSS custom properties at the top of assets/css/style.css.
- Replace the artwork in assets/images/ with your own images.
- Upload the whole folder to any static host.
File structure
The download contains these 10 files:
- LICENSE.txt1.3 KB
- README.md2.5 KB
- assets/css/style.css16 KB
- assets/fonts/sora-LICENSE.txt4.3 KB
- assets/fonts/sora-latin-wght-normal.woff233 KB
- assets/images/favicon.svg257 B
- assets/js/main.js12 KB
- documentation/index.html11 KB
- documentation/licenses/lucide-LICENSE.txt3.1 KB
- index.html31 KB
Colours
These custom properties are defined at the top of the stylesheet. Change a value once and it updates everywhere it is used.
--color-bg#101014--color-surface#1a1a21--color-surface-2#23232c--color-text#ffffff--color-muted#b4b4c0--color-line#2e2e39--color-accent#ff5c00--color-accent-hover#ff7a2e--color-on-accent#101014
Interactive features
Autoplay and pause
Add data-glide-autoplay="5000" (milliseconds) to the slider element. Add a button with data-glide-toggle for a pause/play control. Autoplay also pauses on hover and focus unless data-glide-pause-on-hover="false".
Cards per view
Set data-glide-per-view for phones, data-glide-per-view-sm for 640px and up and data-glide-per-view-lg for 1024px and up. Dots are generated for every reachable position.
Fade effect
Set data-glide-effect="fade". Slides stack in one grid cell and cross-fade; the tallest slide sets the height. Speed is --glide-speed in the :root block.
Thumbnails and counter
Put one button with data-glide-thumb per slide inside an element with data-glide-thumbs, in the same order as the slides. Add an element with data-glide-counter to show the position.
Swipe and keyboard
Swipe or drag the viewport, or focus it and use the left, right, Home and End keys. The drag distance needed to change slide is set in endDrag() in assets/js/main.js.
Customisation notes
Change slide speed and easing
Edit --glide-speed and --glide-ease in the :root block of assets/css/style.css. They drive the slide transition and the fade.
Replace the artwork
The demo uses inline SVG symbols drawn once in the sprite at the top of index.html and referenced with use. Replace a slide's svg with an img element (with width, height and alt) to use photography.
Add or remove slides
Add another element with data-glide-slide inside the track. Dots, counters and aria-labels such as "3 of 5" update automatically; add a matching thumbnail button if the slider has a thumbnail strip.
Change the card gap
The space between carousel cards is --glide-gap on the slider (16px by default). Set it on .glide--cards or any single slider.
What is front-end only
This is a front-end template. The behaviours below are demonstrations that run in the browser; connect them to your own server or service before relying on them.
- All destinations, workshops, prices, quotes and people are fictional sample content.
- The links on the hero slides point at example.com placeholders.
Bundled components and licences
Everything the template needs is inside the download; nothing is loaded from the network.
- Sora typeface — OFL-1.1 (
assets/fonts/sora-LICENSE.txt) - Lucide icons (inlined SVG) — ISC (
documentation/licenses/lucide-LICENSE.txt)
Changelog
Version 1.0.0 · Nov 23, 2026
- Initial release.