I’m using this code for a slideshow; works well:
function funcHome() {
var i = 0; var path = new Array();
// List of images
path[0] = "../images/2016-banner.jpg";
path[1] = "../images/2014-main2l.jpg";
path[2] = "../images/2016-edge.jpg";
function swapImage()
{
slide.src = path[i];
if(i < path.length - 1) i++;
else i = 0;
setTimeout(swapImage,2500);
}
swapImage();
};
However, I wonder how to add a transition between images - is it possible with a simple script addition, such as with CSS? (I’m not using Jquery in this site.)