..which makes it easy to include animated and powerful slideshows in your website.
And the best?
No useless unused features.
This is as naked as you'll wanna get!
Or so I have heard.
(coming soon)
- None
Download it and include the JS & CSS files inside your page(s) with the script & link tag.
e.g.
<link href="./styles/jiss.min.css" rel="stylesheet"/>
<script src="./scripts/jiss.min.js"></script>
And put your images inside a folder, numbered from 0 to infinity (& beyond).
E.g. "000.jpg" "001.jpg" or "01.png" and so on.
Then simply create an object for your slideshow(s) and start!
var topBanner = new JISS(); // uses default options
var background = new JISS({container: 'background'}); // Custom options
// The start function creates the objects, preferably run it when the DOM is ready.
topBanner.start();
background.start();
Done. See the configuration below on how to fine tune it.
The generated image elemtns are selectable with the following selector(s):
/* Keep in mind these are affected by the prefix! */
div.JISScontainer > div[class*="JISSimage"]
div.JISSimageN /* Replace N with any number starting from 0 and add padding if applicable */
div.JISSactive
JISS can be configured by supplying the options at creation.
See following example on how to:
var bannerSlideshow = new JISS({
container: 'myCustomContainerElement', // Custom container class name | def.: slideshow
imagesCount: 47, // Count of images | def.: 8
imagesExtension: 'png', // Image extension | def.: jpg
imagesPath: './my/custom/image/path', // Path to the image folder | def.: ./assets/img/slideshow
imagesPathPadding: 2, // Padding of the name | def.: 3
interval: 5, // Image duration in seconds | def.: 10
prefix: 'NotJISS', // Prefix of anything JISS uses | def.: JISS
random: 'no', // Randomize images | def.: 'yes'
ascending: 'no' // (For ordered mode) Sorting | def.: 'yes'
})
Version / Release Date / Codename
- Reworked configuration
- Minified version is actually usable
- Support for multiple independent slideshows in one page
- Container element can be chosen
- Images can be shown randomly or in ascending/descending order
- JQuery dependency removed
- Animations moved from JS to CSS, as god intended
- Initial release - more to come soon!
Copyright (c) 2016-2018 Alexander Meinhardt / Avunia. Licensed under the MIT License (MIT)