Simple automatic image slideshow script
npm install total-gallerySimple automatic image slideshow.
jQuery (v3.2.1)
Name | Default | Type | Description
-----|---------|------|-------------
imageSelector | 'img' | string | Selector used to get the images
autoplaySpeed | 5000 | int > 0 | Display interval of each image
fadeSpeed | 2000 | int >= 0 | Fade animation speed
Install from npm:
```
npm install total-gallery
1. Include the JS script totalGallery.js - or the minified production script totalGallery.min.js - in the head or the body of your HTML file.
3. Initialise the widget within an inline script tag, or in an external JS file.
Use following HTML markup to implement an image slideshow:
` Initialise the plugin as follows: gallery.totalGallery({ Copyright (c) 2018 Totalcom Srl Permission is hereby granted, free of charge, to any person obtaining a copy The above copyright notice and this permission notice shall be included in all THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORhtml




``$3
javascript``
var gallery = $("#gallery");
//OPTIONS HERE
});License
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
copies or substantial portions of the Software.
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.