What Is GSlides
See Section
What Can You Make
See Section
Why It's Better
See Section
How To Use
See Section
GSlides is a Webasesed slideshow program that lets you focus on making it Pop
Including:
Photo Galleries
Mind Changing Presentations
Product Introductions
While other programs lock you into a system, GSlides allows you to leverage code to make anything.
Installing
See Section
Basic Set Up
See Section
Advanced Features
See Section
Demos
See Section
GSlides currently requires the dev to self host it in thier project. You can do this by simply downloading the files and then bringing them into the project.
Next do these two links in your HTML:
<link rel="stylesheet" href="/GSlides/slideUi.css">
< script src="/GSlides/gslides.js"></script >
Every show is built from a div with the slidshow class and an id.
<div class="slideshow" id="slideshow1"></div>
Inside goes everything else including controls and slides which are made of slideSector classes
<div class="slideshow" id="slideshow1">
<div class="chevronLeftContainer">
<div class="chevronLeftMask"></div>
</div>
<div class="chevronRightContainer">
<div class="chevronRightMask"></div>
</div>
<div class="slideSector"> </div>
</div>
I know the last slide was a lot, but that's all needed to set up the btn controls.
Each slide gets its own slide sector div, after the first one the hidden class is added.
<div class="slideSector"></div>
<div class="slideSector hiddenSlide"></div>
put this js in with the id of your show and boom slide show
let slideShow1 = new slideShow('slideID');
slideShow.activeShow = slideShow1;
GSlides Contains several js functions to help you manage the show
slideShowClass.goToSlide(number);
slideShowClass.nextSlide();
slideShowClass.backSlide();
slideShowClass.destroyShow(slideShowId);
There is also eventlistener for when the slide changes. It contains a detail parameter with some stuff in it.
document.addEventListener('slideChanged', (event)=>{})
event.detail:{
slideShowId,
slideNumber,
changeDirection
}
You can set the pointers to animation classes
slideShowClass.forwardInAnimationClass = 'slideInAnimationClass'
slideShowClass.forwardOutAnimationClass = 'slideOutAnimationClass'
slideShowClass.backOutAnimationClass = 'slideOutAnimationReverseClass'
slideShowClass.backInAnimationClass = 'slideInAnimationReverseClass'